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:
-
def player_death(ev):
-
player = wcs.Command(ev['attacker'])
-
if ev['es_userteam'] == "2":
-
team = "c"
-
else:
-
team = "t"
-
player.AreaDamage(team, 250, 75)
Comments (0)
You don't have permission to comment on this page.