WarCraft: Source

 

Health

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

Health


Health sets a new value for the maximum health a player is allowed. This will be usually used at player_spawn, for example, if you want the race to have a default health of 150 health, then you'd use Health(150)... This will change the MAXIMUM health that the player can have, so regeneration and other skills such as Heal would also adhear to this change.

 

The correct syntax is:

 

wcs.Command(<userid>).Health(<amount>)

 

  • Userid - The players ID who you want to change the maximum health of
  • Amount - The new maximum health the player will have


Example:

 

def player_spawn(ev):

    player = wcs.Command(ev['userid'])

    player.Health(150)

Comments (0)

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