mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-06-28 23:21:51 +00:00
added prio goal
This commit is contained in:
@ -381,6 +381,32 @@ HasBotJavelinLocation()
|
||||
return isDefined( self.bot.jav_loc );
|
||||
}
|
||||
|
||||
/*
|
||||
Returns whether the bot has a priority objective
|
||||
*/
|
||||
HasPriorityObjective()
|
||||
{
|
||||
return self.bot.prio_objective;
|
||||
}
|
||||
|
||||
/*
|
||||
Sets the bot to prioritize the objective over targeting enemies
|
||||
*/
|
||||
SetPriorityObjective()
|
||||
{
|
||||
self.bot.prio_objective = true;
|
||||
self notify( "kill_goal" );
|
||||
}
|
||||
|
||||
/*
|
||||
Clears the bot's priority objective to allow the bot to target enemies automatically again
|
||||
*/
|
||||
ClearPriorityObjective()
|
||||
{
|
||||
self.bot.prio_objective = false;
|
||||
self notify( "kill_goal" );
|
||||
}
|
||||
|
||||
/*
|
||||
Sets the aim position of the bot
|
||||
*/
|
||||
|
Reference in New Issue
Block a user