Call of Duty Script Documentation

# trackscriptstate( <new state name>, <reason> )

## Module

    AI

## 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 function on

    <actor> An actor

## Example

     self trackScriptState( entryState , "CoverRightStandStill returned" );

## Minimum Number of arguments: 2

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

## Number of optional arguments: 0

Return to Function List