WarCraft: Source

 

AreaRegen

Page history last edited by freddukes@... 1 yr ago

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:

 

  1. def player_spawn(ev):
  2.     player = wcs.Command(ev['userid'])
  3.     if ev['es_userteam'] == "2":
  4.         filter = "t"
  5.     else:
  6.         filter = "c"
  7.     player.AreaRegen(filter,250,5,2)

 

Comments (0)

You don't have permission to comment on this page.