This commit is contained in:
ineed bots
2023-11-29 16:31:37 -06:00
parent 6f954ebfba
commit 521225e4ce
2 changed files with 20 additions and 1 deletions

View File

@ -116,6 +116,19 @@ BotBuiltinBotMoveTo( where )
}
}
/*
Test if is a bot
*/
BotBuiltinIsBot()
{
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["isbot"] ) )
{
return self [[ level.bot_builtins["isbot" ]]]();
}
return false;
}
/*
Returns if player is the host
*/
@ -173,7 +186,7 @@ doHostCheck()
*/
is_bot()
{
return self.isbot;
return self BotBuiltinIsBot();
}
/*