/* // // Look Around Randomly // // This script should be called via the StartLook() action and stopped via the StopLook() action // // **WARNING**: // This script should never call other scripts nor should it be called directly within other scripts // */ machine LookRandom { state LookStart { action LookAtRandomPositionExtent(0.0, 0.9, 0.5, true) action SetRandomLookTimer(3.0, 5.0) transition { goto TimerWait } } state TimerWait { transition IsRandomLookTimerUp() { goto LookStart } } ;/////////////////////////////////////////////////////////////// ;// Exit States exitstart state LookExitStart { transition { direct goto LookExitEnd } } exitend state LookExitEnd { } }