Difference between revisions of "EVENT TYPE APPROACH TRAP"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split out of event)
 
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> Trap triggered and the creature receiving this event should approach the trap
+
{{event
*<b>Sent From:</b>
+
|when=Trap triggered and the creature receiving this event should approach the trap
*<b>Sent To:</b> creature
+
|to=creature
 
+
|from=
Parameters:
+
|object0name=oTrap
*Object 0: trap
+
|object0desc=Trap
 +
}}
  
 
[[Category:Event types|APPROACH_TRAP]]
 
[[Category:Event types|APPROACH_TRAP]]

Revision as of 22:24, 23 July 2009

Source:
[Undocumented]
Sent when:
Trap triggered and the creature receiving this event should approach the trap
Sent from:
Sent to:
creature
Parameters:
  • Object 0: Trap

Usage

case EVENT_TYPE_APPROACH_TRAP:
{
object oTrap = GetEventObject(ev, 0); // Trap

// insert event-handling code here

break;
}