//CloudCityTrap_A state Base { Conditions { if FreePlay == 1 goto Update_R2D2 if IAm "R2D2" == 1 goto Update_R2D2 if AlwaysTrue == 1 goto Update } Actions { } } state Update { ReferenceScript { Script=GeneralParty Source=Global ReturnState=Update Conditions { } } Conditions { } Actions { FollowPlayer "1" } } state Update_R2D2 { ReferenceScript { Script=GeneralParty Source=Global ReturnState=Update_R2D2 Conditions { if PlayerInTriggerArea "Vader_Fight" == 0 and if InTriggerArea "Ledge_1" == 0 and if InTriggerArea "Ledge_2" == 0 and if UnderPlayerControl "grabbercon_1" == 0 } } Conditions { if InTriggerArea "Ledge_1" == 1 and if ObstacleAtStart "r2_gap" == 1 goto R2_ActivatePanel if InTriggerArea "Ledge_2" == 1 and if ObstacleAtStart "r2_gap" == 1 goto R2_ActivatePanel if InTriggerArea "Ledge_1" == 0 and if InTriggerArea "Ledge_2" == 0 and if UnderPlayerControl "grabbercon_1" == 1 goto R2_WaitToBePickedUp } Actions { FollowPlayer "1" } } state R2_WaitToBePickedUp { Conditions { if InTriggerArea "Ledge_1" == 1 goto Update_R2D2 if InTriggerArea "Ledge_2" == 1 goto Update_R2D2 if UnderPlayerControl "grabbercon_1" == 0 goto Update_R2D2 } Actions { GoToLocator "name" "Grab_R2D2" "waittime=9999999999" } } state R2_ActivatePanel { Conditions { if InTriggerArea "Ledge_1" == 0 goto Update_R2D2 if InTriggerArea "Ledge_2" == 0 goto Update_R2D2 } Actions { PullLever "name=r2_gap" CameraCut "use_current_campos" "tgt_character=myself" "FollowTgt" "blend_in_time=0.5" "blend_out_time=0.5" "end_time=3" "no_borders" SetState "Update_R2D2" } }