//CloudCityTrap_B state Base { Conditions { } Actions { CnxController "from=WinPlat1_a" "to=WinPlat1_b" "on_flag=BIGJUMP" "obj=window_platform" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=ramp1_a" "to=ramp1_c" "off_flag=BLOCK" "obj=bridge_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=ramp1_c" "to=ramp1_b" "off_flag=BLOCK" "obj=bridge_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=lift1_a" "to=lift1_b" "off_flag=BLOCK" "on_flag=JUMP_NOW" "obj=lift" "checkvisible" "on_frames=55TO90" CnxController "from=lift2_a" "to=lift2_b" "off_flag=BLOCK" "obj=lift" "checkvisible" "on_frames=1TO15" "on_frames=120TOlastframe" "bothways" CnxController "from=lift2_a" "to=lift2_c" "off_flag=BLOCK" "obj=lift" "checkvisible" "on_frames=55TO90" "bothways" CnxController "from=door_a" "to=door_b" "off_flag=BLOCK" "obj=door_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" SetState "Update" } } state Update { Conditions { //Blow up the window. if Message "BlowUpWindow" == 1 and if ObstacleChainPhase "window" == 1 goto BlowUpWindow } Actions { } } state BlowUpWindow { Conditions { } Actions { ;Idle "0.25" SetObstacleChainPhase "window" "phase=2" SetState "Update" } }