Difference between revisions of "EVENT TYPE ALLY ATTACKED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(update template)
Line 2: Line 2:
 
|when=an ally has received the ATTACKED event. An ally is an object with the same group ID.
 
|when=an ally has received the ATTACKED event. An ally is an object with the same group ID.
 
|to=Allied creatures, placeables (of the same group as the sender)
 
|to=Allied creatures, placeables (of the same group as the sender)
 +
|tocategory1=creature
 +
|tocategory2=placeable
 +
|sortkey=ALLY_ATTACKED
 
|from=scripts (rules_core - attack event handler)
 
|from=scripts (rules_core - attack event handler)
 
|creatordesc= ally object (object being attacked)
 
|creatordesc= ally object (object being attacked)
Line 8: Line 11:
 
|object0desc= attacking object
 
|object0desc= attacking object
 
}}
 
}}
 
[[Category:Event types|ALLY_ATTACKED]]
 

Revision as of 16:57, 6 August 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 oAlly = GetEventCreator(ev); // ally object (object being attacked)
object oAttacker = GetEventObject(ev, 0); // attacking object

// insert event-handling code here

break;
}