//HothEscape_a state Base { Conditions { if MissionMode == 1 goto MissionMode if AlwaysTrue == 1 goto Update } Actions { CnxController "from=door1_a" "to=door1_b" "off_flag=BLOCK" "obj=door_6" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door2_a" "to=door2_b" "off_flag=BLOCK" "obj=door_4" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door3_a" "to=door3_b" "off_flag=BLOCK" "obj=door_7" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door4_a" "to=door4_b" "off_flag=BLOCK" "obj=door_8" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door5_a" "to=door5_b" "on_flag=BLOCK" "obj=blockage_01" "checkvisible" "on_frames=1TOlastframe" "bothways" CnxController "from=door6_a" "to=door6_b" "off_flag=BLOCK" "obj=door_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door7_a" "to=door7_b" "off_flag=BLOCK" "obj=door_3" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" ObstacleTriggerSet "trigger=pad_1" "trigger=pad_2" "trigger=pad_3" "trigger=pad_4" "obstacle=pads" } } state Update { Conditions { if Message "repeating_off" == 0 and if ObstacleFinished "train_points" == 1 goto StartCameraCut } Actions { } } state StartCameraCut { Conditions { if ObstacleChainPhase "train_looping" == 4 goto CameraCutPart2 } Actions { SetMessage "name=repeating_off" "value=1" SetObstacleRepeating "train_looping" "FALSE" CameraCut "campos_x=9.53" "campos_y=0.75" "campos_z=2.97" "tgt_obj=dozer_02" "FollowTgt" "end_time=infinite" "blend_in_time=0.5" "blend_out_time=0.5" "nXo_borders" } } state CameraCutPart2 { Conditions { if ObstacleChainPhase "train_looping" > 4 goto EndCameraCut } Actions { CameraCut "campos_x=9.53" "campos_y=0.75" "campos_z=2.97" "tgt_obj=dozer_03" "FollowTgt" "end_time=infinite" "blend_in_time=0.5" "blend_out_time=0.5" "nXo_borders" Idle "3" CameraCut "campos_x=9.53" "campos_y=0.75" "campos_z=2.97" "tgt_obj=dozer_03" "FXollowTgt" "end_time=infinite" "blend_in_time=0.5" "blend_out_time=0.5" "nXo_borders" } } state EndCameraCut { Conditions { } Actions { EndCameraCut "end_time=3" "blend_out_time=0.5" SetState "Update" } } state MissionMode { Conditions { } Actions { } }