Difference between revisions of "EVENT TYPE TRAP TRIGGERED"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (category) |
BryanDerksen (Talk | contribs) |
||
Line 2: | Line 2: | ||
{{event | {{event | ||
|sourcefile=script.ldf | |sourcefile=script.ldf | ||
− | |when= | + | |when= sent by the engine when a placeable trap collides with something (eg. swinging log trap strikes a creature). |
− | |from= | + | |from= [[engine]] |
|to= | |to= | ||
|tocategory1=trap | |tocategory1=trap | ||
|sortkey=TRAP_TRIGGERED | |sortkey=TRAP_TRIGGERED | ||
+ | |object0name=oTarget | ||
+ | |object0desc=Target hit by trap | ||
+ | |location0name=lImpact | ||
+ | |location0desc=Impact location | ||
}} | }} |
Revision as of 19:19, 19 August 2009
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:
- script.ldf
- Sent when:
- sent by the engine when a placeable trap collides with something (eg. swinging log trap strikes a creature).
- Sent from:
- engine
- Sent to:
- Parameters:
-
- Object 0: Target hit by trap
- Location 0: Impact location
Usage
case EVENT_TYPE_TRAP_TRIGGERED:
{
object oTarget = GetEventObject(ev, 0); // Target hit by trap
location lImpact = GetEventLocation(ev, 0); // Impact location
// insert event-handling code here
break;
}
{
object oTarget = GetEventObject(ev, 0); // Target hit by trap
location lImpact = GetEventLocation(ev, 0); // Impact location
// insert event-handling code here
break;
}