state InActive { Conditions { if BeenToLevel "Kamino_C" == 0 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate ;Activate starts the creature. Will be started at position calculated in AllocatedPickup } } state Base { Conditions { } Actions { SetState "GoToStart" } } state GoToStart { Conditions { if EitherPlayerInTriggerArea "Enter_Hub" == 1 goto GoToGalleryDoor } Actions { GoToLocator "name" "Start" FacePlayer } } state GoToGalleryDoor { Conditions { if ObstacleFinished "open_shutters" == 1 and if EitherPlayerInTriggerArea "Enter_Gallery" == 1 goto GoToCorridorDoor if EitherPlayerInTriggerArea "Exit_Hub" == 1 goto GoToStart } Actions { GoToLocator "name" "Gallery_Door" FacePlayer } } state GoToCorridorDoor { Conditions { if EitherPlayerInTriggerArea "Exit_Gallery" == 1 goto GoToGalleryDoor if DoorOpened "r4_door1" == 1 and if EitherPlayerInTriggerArea "Enter_Corridor" == 1 goto GoToGallery } Actions { GoToLocator "name" "Corridor_Door" FacePlayer } } state GoToGallery { Conditions { if EitherPlayerInTriggerArea "Exit_Corridor" == 1 goto GoToCorridorDoor } Actions { GoToLocator "name" "Gallery" FacePlayer } }