Difference between revisions of "EVENT TYPE APPROACH TRAP"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split out of event)
 
m (remove redundant category)
 
(5 intermediate revisions by 2 users not shown)
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>
+
|sourcefile=events_h
*<b>Sent To:</b> creature
+
|when=Trap triggered and the creature receiving this event should approach the trap
 
+
|to=creature
Parameters:
+
|tocategory1=creature
*Object 0: trap
+
|tocategory2=trap
 
+
|sortkey=APPROACH_TRAP
[[Category:Event types|APPROACH_TRAP]]
+
|from=
 +
|object0name=oTrap
 +
|object0desc=Trap
 +
}}

Latest revision as of 01:10, 12 February 2010

Source:
events_h
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;
}