Difference between revisions of "EVENT TYPE APPROACH TRAP"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(formatting)
(update template)
Line 2: Line 2:
 
|when=Trap triggered and the creature receiving this event should approach the trap
 
|when=Trap triggered and the creature receiving this event should approach the trap
 
|to=creature
 
|to=creature
 +
|tocategory1=creature
 +
|sortkey=APPROACH_TRAP
 
|from=
 
|from=
 
|object0name=oTrap
 
|object0name=oTrap
Line 7: Line 9:
 
}}
 
}}
  
[[Category:Event types|APPROACH_TRAP]]
+
[[Category:Traps]]

Revision as of 16:52, 6 August 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;
}