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 Args:

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