// send NPC towards the landing site onevent autoend gotolabel patrolloopstart onevent autobegin gotolabel nap ontrigger combatants_go_away gotolabel die :patrolloopstart gotoactor patrolpointred0 512.0 // pretty unlikely NPCs will ever actually not have an enemy before reaching // the final destination but just in case send them to the player if this happens gotoactor player 32.0 :nap // NPC is going autonomous -- put script to sleep until no more enemies sleep :die kill