state InActive { Conditions { if Message "JangoMiniCut" == 0 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate ;Activate starts the creature. Will be started at position calculated in AllocatedPickup } } state Base { Conditions { if BeenToLevel "Kamino_C" == 0 goto GoToStart if PreviousResult == 1 goto SnapToGallery } Actions { } } 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 SnapToGallery { Conditions { } Actions { SnapToLocator "name=Gallery" SetState "GoToGallery" } } state GoToGallery { Conditions { if EitherPlayerInTriggerArea "Exit_Corridor" == 1 goto GoToCorridorDoor } Actions { GoToLocator "name" "Gallery" FacePlayer } }