Call of Duty 4: Scripting Reference - AI::TrackScriptState
From COD Modding & Mapping Wiki
TrackScriptState( <new state name>, <reason> )
Module: AI
SP Only
Summary:
Change the script state of the actor, with a reason for the state change. The reason will be added to the history of the AI
Call this on: <actor> An actor
Example:
self TrackScriptState( entryState , "CoverRightStandStill returned" );
Required arguments:
- <new state name> (const string) The new state name
- <reason> (const string) The reason for the transition
Optional arguments:
- none
Notes:
- none