state InActive { Conditions { if AllocatedPickup == 1 goto Activate ;Returns 1 if allocated a valid pickup to collect and also a valid start position that is off screen. } Actions { } } state Activate { Conditions { } Actions { Activate ;Activate starts the creature. Will be started at position calculated in AllocatedPickup } } state Base { Conditions { } Actions { FollowPath "RUN" } }