WarCraft: Source

 

HealthAdd

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

Health Add


This command is similar to Health, except instead of setting a new maximum health value, it will Add a new value to the current maximum health...

 

The correct syntax is:

 

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

 

  • Userid - The  player who you want to add the Health to
  • Amount - The amount of health to add to the current health of the user.


Example:

 

def player_spawn(ev):

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

    player.HealthAdd(50)

Comments (0)

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