Difference between revisions of "EVENT TYPE PLAYER COMMAND ADDED"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) |
BryanDerksen (Talk | contribs) (information from CObjectAI.cpp) |
||
Line 5: | Line 5: | ||
|from= [[engine]] | |from= [[engine]] | ||
|to= | |to= | ||
+ | |object0name= oCreator | ||
+ | |int0name=nCommandId | ||
}} | }} | ||
[[Category:Event types|PLAYER_COMMAND_ADDED]] | [[Category:Event types|PLAYER_COMMAND_ADDED]] |
Revision as of 19:23, 20 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 engine when player is given an order.
- Sent from:
- engine
- Sent to:
- Parameters:
-
- Integer 0: [Undocumented]
- Object 0: [Undocumented]
Usage
case EVENT_TYPE_PLAYER_COMMAND_ADDED:
{
int nCommandId = GetEventInteger(ev, 0); //
object oCreator = GetEventObject(ev, 0); //
// insert event-handling code here
break;
}
{
int nCommandId = GetEventInteger(ev, 0); //
object oCreator = GetEventObject(ev, 0); //
// insert event-handling code here
break;
}