Difference between revisions of "EVENT TYPE ALLY ATTACKED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(sort key)
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> an ally has received the ATTACKED event. An ally is an object with the same group ID.
+
{{event
*<b>Sent From:</b> scripts (rules_core - attack event handler)
+
|when=an ally has received the ATTACKED event. An ally is an object with the same group ID.
*<b>Sent To:</b> Allied creatures, placeables (of the same group as the sender)
+
|to=Allied creatures, placeables (of the same group as the sender)
 
+
|from=scripts (rules_core - attack event handler)
Parameters:
+
|creatordesc= ally object (object being attacked)
*<b>Creator:</b> ally object (object being attacked)
+
|object0name= oAttacker
*<b>Object 0:</b> attacking object
+
|object0desc= attacking object
 +
}}
  
 
[[Category:Event types|ALLY_ATTACKED]]
 
[[Category:Event types|ALLY_ATTACKED]]

Revision as of 22:04, 23 July 2009

Source:
[Undocumented]
Sent when:
an ally has received the ATTACKED event. An ally is an object with the same group ID.
Sent from:
scripts (rules_core - attack event handler)
Sent to:
Allied creatures, placeables (of the same group as the sender)
Parameters:
  • Creator: ally object (object being attacked)
  • Object 0: attacking object

Usage

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

// insert event-handling code here

break;
}