Area Regeneration
This command regenerates an area around the user that the command is running on...
The correct syntax is:
wcs.Command(<userid>).AreaRegen(<team>,<distance>,<amount to heal>,<delay to heal next amount>)
- Userid - The user that is casting the area regen command. The distance will orginate from him
- Team - You can use any formation of EST team commands: e.g. '#c','#t', this will make it so it will only heal the users team from he's from etc.
- Distance - All the users within the distance from the user when he heals are also healed.
- Amount to heal - This is quite simply the value that wants to be added to the users health each loop. It will only add health until their maximum health, then it will stop.
- Delay to heal next amount - How long before the next loop becomes active
Example:
-
def player_spawn(ev):
-
player = wcs.Command(ev['userid'])
-
if ev['es_userteam'] == "2":
-
filter = "t"
-
else:
-
filter = "c"
-
player.AreaRegen(filter,250,5,2)
Comments (0)
You don't have permission to comment on this page.