Drain
The drain command Drains a certain amount of health from the user, over a certain amount of time and delay. It is used as a sort of 'poison' effect, and deduct the health from the user until either he dies, or the 'time' reaches 0...
The correct syntax is:
wcs.Command(<userid>).Drain(<amount>, <delay each loop>, <total time to run the drain>,[attacker])
- Userid - The user being drained
- Amount - The amount of damage to drain each loop
- Delay each loop - The delay between each loop. e.g. A value of 3 would mean every 3 seconds, it would dmage the user
- Total Time - After this value, the drain will stop draining health, unless the user has already died first.
- Attacker Id - This is optional, who the damage will count from.
Examples:
def player_hurt(ev):
player = wcs.Command(ev['userid'])
player.Drain(5,10,60)
# Drain a player 5 health every 10 seconds, for a total time of 60 seconds.
Comments (0)
You don't have permission to comment on this page.