WarCraft: Source

 

AreaDamage

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

Area Damage


This command deals a defined about of damage to a certain area, starting at the origin of the user you define:

 

The correct syntax is:

 

wcs.Command(<userid>).AreaDamage(<team>,<distance>,<amount>)

 

  • Userid - The user's ID in which the damage originates from. All distances will be from his position
  • Team - The team name on who you want to damage ("#c","#t","#d") etc etc...
  • Distance - The distance (in game units) that other people will be damaged
  • Amount - Amount to damage the users in range by

 


 

Example:

 

  1. def player_death(ev):
  2.     player = wcs.Command(ev['attacker'])
  3.     if ev['es_userteam'] == "2":
  4.         team = "c"
  5.     else:
  6.         team = "t"
  7.     player.AreaDamage(team, 250, 75)

Comments (0)

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