//********************************************************************************* fsm playeraifsm : integer; //------------------------------------------------------------------ // // Constant Definitions // //------------------------------------------------------------------ const #include_ //------------------------------------------------------------------ // // Type Definitions // //------------------------------------------------------------------ type #include_ //------------------------------------------------------------------ // // Variable Declarations // //------------------------------------------------------------------ var //------------------------------------------------------------------ // // Local Functions // //------------------------------------------------------------------ function init; code endfunction; //------------------------------------------------------------------ // // Main Code // //------------------------------------------------------------------ state startState; code trans normal; endstate; state normal; code if (billyup) then clearmoveorder(me); orderstopattacking; trans gothere; endif; OrderMoveto(epa_playerstartpath,50,move_nocycle,true,false); endstate; state gothere; code OrderMoveto(epa_playerpath,600,move_nocycle,true,false); endstate; state deadState; code endstate; endfsm. //******************************************************************