Regen
Regen starts a player regenerating... It will last until a player dies, looping whenever he his hurt and stopping at his maximum health.
The correct syntax is:
wcs.Command(<userid>).Regen(<amount per loop>, <delay per loop>)
- Amount per Loop - This is the amount of healh recovered at each loop
- Delay per loop - How long it takes before the regen activates again... e.g. 1 would mean the user would gain X health every 1 second
def player_spawn(ev):
player = wcs.Command(ev["userid"])
player.Regen(1,1)
# Gives 1 health every 1 second
Comments (0)
You don't have permission to comment on this page.