WarCraft: Source

 

ArmorAdd

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

ArmorAdd

 


 

 

This command adds the amount of armor to the curent armor value. It is similar to the Armor command, only it adds the value rather than setting it.

 

The correct syntax is:

 

wcs.Command(<userid>).ArmorAdd(<amount to add/deduct>)

 

  • Userid - The player who's armor value you're changing
  • Amount to add/deduct - If it is a positive number, then it will add the value, negative, it will deduct

 

 


 

 

Example:

 

def player_hurt(ev):

    wcs.Command(ev['userid']).ArmorAdd(25)

    # Adds 25 armor to the users current armor value when hit

 

Comments (0)

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