Difference between revisions of "EVENT TYPE PLACEABLE COLLISION"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(parameters from cplaceable.cpp)
Line 4: Line 4:
 
|when= player collides with object (if EnableCollisionEvent column in [[placeables.xls]] is non-zero).
 
|when= player collides with object (if EnableCollisionEvent column in [[placeables.xls]] is non-zero).
 
|from= [[engine]]
 
|from= [[engine]]
|to= placeables
+
|to= [[placeable]]s
 
|tocategory1=placeable
 
|tocategory1=placeable
 
|sortkey=PLACEABLE_COLLISION
 
|sortkey=PLACEABLE_COLLISION
Line 10: Line 10:
 
|object0name=oCreature
 
|object0name=oCreature
 
}}
 
}}
 +
 +
[[Category:Event types|PLACEABLE_COLLISION]
 +
[[Category:Placeable events|PLACEABLE_COLLISION]]

Revision as of 03:46, 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:
script.ldf
Sent when:
player collides with object (if EnableCollisionEvent column in placeables.xls is non-zero).
Sent from:
engine
Sent to:
placeables
Parameters:

Usage

case EVENT_TYPE_PLACEABLE_COLLISION:
{
object oPlaceable = GetEventCreator(ev); //
object oCreature = GetEventObject(ev, 0); //

// insert event-handling code here

break;
}
[[Category:Event types|PLACEABLE_COLLISION]