//CruiserE ReferenceScript { Script=GenericDefend Source=Global ReturnState=Base Conditions { } } state Base { Conditions { if CategoryIs "Jedi" == 1 and if EitherPlayerUsingForce "switch_2_1" == 1 goto UseValve if CategoryIs "Jedi" == 1 and if EitherPlayerUsingForce "valve_2_1" == 1 goto UseSwitch } Actions { FollowPlayer "0.75" } } state UseValve { Conditions { if EitherPlayerUsingForce "switch_2_1" == 0 goto Base } Actions { GoToLocator "name" "valve" "0.75" UseForce "valve_2_1" } } state UseSwitch { Conditions { if EitherPlayerUsingForce "valve_2_1" == 0 goto Base } Actions { GoToLocator "name" "valve" "0.75" UseForce "switch_2_1" } }