Difference between revisions of "EVENT TYPE PLAYER COMMAND ADDED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '{{needs review}} {{event |sourcefile=script.ldf |when= |from= |to= }} PLAYER_COMMAND_ADDED')
 
m (Updating template)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{needs review}}
 
{{needs review}}
 
{{event
 
{{event
|sourcefile=script.ldf
+
|sourcefile   = script.ldf
|when=
+
|sourcemodule =
|from=
+
|sortkey      = PLAYER_COMMAND_ADDED
|to=
+
|when         = Sent by engine when player is given an order
 +
|from         = [[engine]]
 +
|to           =
 +
|tocategory1  =
 +
|tocategory2  =
 +
|object0name  = oCreator
 +
|object0desc  = {{undocumented}}
 +
|int0name    = nCommandId
 +
|int0desc    = {{undocumented}}
 
}}
 
}}
 
[[Category:Event types|PLAYER_COMMAND_ADDED]]
 

Latest revision as of 19:12, 21 August 2011

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:

Usage

case EVENT_TYPE_PLAYER_COMMAND_ADDED:
{
int nCommandId = GetEventInteger(ev, 0); // [Undocumented]
object oCreator = GetEventObject(ev, 0); // [Undocumented]

// insert event-handling code here

break;
}