0


i have a script to spawn a bot but i want them to automatically spawn at one of the five spawn points if one dies
heres the script mess with it
player = GetHostPlayer();
team = player.pers[ "team" ];
wait( 0.25 );
bot = AddTestClient();
bot.pers[ "isBot" ] = true;
bot thread maps\mp\gametypes\_bot::bot_spawn_think( getOtherTeam( team ) );
self iPrintlnBold( "^7AI ^1Spawned" );
break;:banana::banana::mad::mad:
Last edited by DR.merftofen; 08-28-2011 at 01:42 PM.
thats the script used in my menu, you don't need all that to spawn a bot.
You could use notify or an if statement.
Don't know if they work in gsc but you should be able to use a loop function - search "c++ loop" or something similar and see if you can find anything.
I'd post some code but I've only used the loop in c++, not gsc so it may need a little tweak.
ok cause its for a zombie game and i need the zombies to spawn after one killed but the zombie needs to spawn at a spawn location
Bookmarks