Difference between revisions of "EVENT TYPE TRAP TRIGGER ENTER"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split out of event)
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
*<b>Sent When:</b>
+
{{needs review}}
*<b>Sent From:</b> area of effect 'trigger'
+
{{event
*<b>Sent To:</b> trap's signal target(s).
+
|sourcefile=events_h
 
+
|when=
Parameters:
+
|from=area of effect 'trigger'
 +
|to=trap's signal target(s).
 +
|tocategory1=trap
 +
|sortkey=TRAP_TRIGGER_ENTER
 +
|targetname=oTarget
 +
|targetdesc=Object that triggered the trap
 +
|creatorname=oTrap
 +
|creatordesc=Trap placeable
 +
|string0name=sAOE
 +
|string0desc=Lower case tage of AOE trigger associated with the trap
 +
}}
  
 
[[Category:Event types|TRAP_TRIGGER_ENTER]]
 
[[Category:Event types|TRAP_TRIGGER_ENTER]]
 +
[[Category:Trap events|TRAP_TRIGGER_ENTER]]

Latest revision as of 04:09, 4 January 2010

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
events_h
Sent when:
Sent from:
area of effect 'trigger'
Sent to:
trap's signal target(s).
Parameters:
  • Creator: Trap placeable
  • Target: Object that triggered the trap
  • String 0: Lower case tage of AOE trigger associated with the trap

Usage

case EVENT_TYPE_TRAP_TRIGGER_ENTER:
{
object oTrap = GetEventCreator(ev); // Trap placeable
object oTarget = GetEventTarget(ev); // Object that triggered the trap
string sAOE = GetEventString(ev, 0); // Lower case tage of AOE trigger associated with the trap

// insert event-handling code here

break;
}