1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-29 07:31:50 +00:00

Improved usage

This commit is contained in:
ineedbots
2021-06-04 13:55:01 -06:00
parent a289739feb
commit 95a93246fc
2 changed files with 27 additions and 7 deletions

View File

@ -447,6 +447,27 @@ getValidTube()
return undefined;
}
/*
helper
*/
waittill_either_return_(str1, str2)
{
self endon(str1);
self waittill(str2);
return true;
}
/*
Returns which string gets notified first
*/
waittill_either_return(str1, str2)
{
if (!isDefined(self waittill_either_return_(str1, str2)))
return str1;
return str2;
}
/*
Returns a random grenade in the bot's inventory.
*/