Difference between revisions of "EVENT TYPE ATTACKED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (sort key)
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> another object tried attacking this creature using melee/ranged weapons (hit or miss), talents or spells.
+
{{event
*<b>Sent From:</b> scripts (Rules_ResolveAttack function)
+
|when=another object tried attacking this creature using melee/ranged weapons (hit or miss), talents or spells.
*<b>Sent To:</b> creatures, placeables
+
|from=scripts (Rules_ResolveAttack function)
 
+
|to= creatures, placeables
Parameters:
+
|creatordesc=attacking object
*<b>Creator:</b> attacking object
+
|object0name= oAttacker
*<b>Object 0:</b> attacking object
+
|object0desc= attacking object
 +
}}
  
 
[[Category:Event types|ATTACKED]]
 
[[Category:Event types|ATTACKED]]

Revision as of 22:47, 23 July 2009

Source:
[Undocumented]
Sent when:
another object tried attacking this creature using melee/ranged weapons (hit or miss), talents or spells.
Sent from:
scripts (Rules_ResolveAttack function)
Sent to:
creatures, placeables
Parameters:
  • Creator: attacking object
  • Object 0: attacking object

Usage

case EVENT_TYPE_ATTACKED:
{
object oAttacker = GetEventObject(ev, 0); // attacking object

// insert event-handling code here

break;
}