Difference between revisions of "EVENT TYPE HANDLE CUSTOM AI"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (remove redundant category)
 
Line 14: Line 14:
 
|int6name=nTacticID
 
|int6name=nTacticID
 
}}
 
}}
[[Category:Event types|HANDLE_CUSTOM_AI]]
 
[[Category:Creature events|HANDLE_CUSTOM_AI]]
 

Latest revision as of 01:13, 12 February 2010

Source:
events_h
Sent when:
This event is sent to creature scripts after custom AI has been enabled (call CAI_SetCustomAI(OBJECT_SELF, CAI_INITIATE) in the EVENT_TYPE_SPAWN event).
Sent from:
Sent to:
creatures
Parameters:

Usage

case EVENT_TYPE_HANDLE_CUSTOM_AI:
{
int nLastCommand = GetEventInteger(ev, 1); //
int nLastCommandStatus = GetEventInteger(ev, 2); //
int nLastSubCommand = GetEventInteger(ev, 3); //
int nAITargetType = GetEventInteger(ev, 4); //
int nAIParameter = GetEventInteger(ev, 5); //
int nTacticID = GetEventInteger(ev, 6); //
object oLastTarget = GetEventObject(ev, 0); //

// insert event-handling code here

break;
}