global Map = { Switches = { platform2_switch = { Debug = true, WaypointName = "platform2_switch", LimitTeam = (1< 0 ) { Map.Switches.platform2_call_switch.LimitTeam = (1< 0 && this.DistanceTo(targetpos) > 60 ) { this.Say("Distance: ", this.DistanceTo(targetpos)); sleep(1); } this.SetScriptControlled(false); this.EnableMovement(true); this.scriptgoal = null; this.ResetSubGoals(); } } yield(); } }, };