eventAttacked(victim, attacker)
An event that is run when an object belonging to the script’s controlling player is attacked. The attacker parameter may be either a structure or a droid.
Other great resources: Official JS API docs, Scripting Forum
eventAttacked(victim, attacker)
An event that is run when an object belonging to the script’s controlling player is attacked. The attacker parameter may be either a structure or a droid.