Call of Duty 4: Scripting Reference - AI::TrackScriptState

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


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:

  1. <new state name> (const string) The new state name
  2. <reason> (const string) The reason for the transition


Optional arguments:

none


Notes:

none