mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-07-05 10:41:48 +00:00
air
This commit is contained in:
@ -2146,7 +2146,7 @@ watchOnGoal(goal, dis)
|
||||
while(DistanceSquared(self.origin, goal) > dis)
|
||||
wait 0.05;
|
||||
|
||||
if (isDefined(self.bot.script_goal) && self.bot.script_goal == goal)
|
||||
if (isDefined(self.bot.script_goal) && DistanceSquared(self.bot.script_goal, goal) <= dis)
|
||||
self notify("script_goal");
|
||||
self notify("goal");
|
||||
}
|
||||
|
Reference in New Issue
Block a user