Difference between revisions of "EVENT TYPE ALLY ATTACKED"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (sort key) |
BryanDerksen (Talk | contribs) (formatting) |
||
Line 1: | Line 1: | ||
− | + | {{event | |
− | + | |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) | |
− | + | |from=scripts (rules_core - attack event handler) | |
− | + | |creatordesc= ally object (object being attacked) | |
− | + | |object0name= oAttacker | |
− | + | |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;
}
{
object oAttacker = GetEventObject(ev, 0); // attacking object
// insert event-handling code here
break;
}