EVENT TYPE ALLY ATTACKED

From Dragon Age Toolset Wiki
Revision as of 16:57, 6 August 2009 by BryanDerksen (Talk | contribs) (update template)

Jump to: navigation, search
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;
}