the task such: to write the condition in function Timer() under which the bot will not perform a specific function. The bot has in its inventory only 2 weapons (SniperRifle and ImpactHammer) The bot should not perform the function, if he holds the ImpactHammer in his hands.
Code: Select all
if (...)
continue
It didn't help
Code: Select all
function Timer()
{
local Bot B;
ForEach AllActors(class'Bot', B)
{
if ( SniperRifle(B.weapon) == None)
continue;
}
}