TrackScriptState( <new state name>, <reason> )

Module: AI
SP Only


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


 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