OnPhysicalAttacked
The script attached to this event fires when the object is attacked for the first time, but does not fire during combat. This could be used for a reaction to the attack such as changing weapons, fleeing, surrendering, etc.
Trigger
A physical attack is brought against a creature, door, or placeable object.
Function(s)
GetLastAttacker()
returns the object that last attacked OBJECT_SELF.
GetLastDamager()
returns the object that actually dealt damage last (not neccessarily the last attacker).
DetermineCombatRound(object, int)
for standard combat round actions.
Remarks
If a creature is attacked and not currently in combat, it goes hostile and emits appropriate shouts to alert allies nearby.
See Also
Objects with Events | Creature | Door | Placeable Object | |
functions: | DetermineCombatRound | GetLastAttacker | GetLastDamager |
Send comments on this topic.