• Bot Team Code Not Working
    3 replies, posted
Recently, I opened a dev server for guess who, a fairly popular gamemode. In order to test new things, I need bots so the game will start. Obviously, just adding a bot does not work because the game requires the player to pick a team on join, so I tried making this code: function TeamedBot() RunConsoleCommand("bot") timer.Simple(5,function()for k, v inpairs(player.GetBots()) do v:SetTeam(Hiding)endend) end concommand.Add("teamed_bot", TeamedBot) it does not seem to be working. Maybe I just don't have it in the right spot? Some help would be greatly appreciated!
you gotta call that function somewhere
how would I do this?
Where is it located? Just run it by Lua openscript
Sorry, you need to Log In to post a reply to this thread.