//------------------------------------------------------------------ // NOTE: The fsm name below MUST be changed in order for the // script to be considered a unique entity! fsm Generic_NoAttack : integer; //------------------------------------------------------------------ // Generic_NoAttack: //------------------------------------------------------------------ //------------------------------------------------------------------ // Constants //------------------------------------------------------------------ const #include_ //------------------------------------------------------------------ // Types //------------------------------------------------------------------ type #include_ //------------------------------------------------------------------ // Variables //------------------------------------------------------------------ var static locpoint SpawnSpot; static locpoint dummy_hpt; //------------------------------------------------------------------ // Init: my initialization function //------------------------------------------------------------------ function Init; code GetLocation(me,SpawnSpot); SpawnSpot[1] = SpawnSpot[1] + 100; endfunction; //------------------------------------------------------------------ // StartState: my initial state //------------------------------------------------------------------ state StartState; code //TeleportToHell(me); trans TeleportState; endstate; state TeleportState; code if GetGlobalTrigger(GetMemoryInteger(ME,31)) == TRUE then dummy_hpt[0] = 2; dummy_hpt[1] = 3; dummy_hpt[2] = 4; teleportAndLook(ME,dummy_hpt,0,SpawnSpot); Startup(ME); trans after_TeleportState endif; endstate; state after_TeleportState; code if GetGlobalTrigger(GetMemoryInteger(ME,30)) == TRUE then StartExecute(ME); trans WaitState; endif; endstate; state WaitState; code endstate; state DeadState; code orderDie; endstate; endfsm.