Results 1 to 4 of 4
Thread: spawn bot
08-28-2011, 11:52 AM #1
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" );
Last edited by DR.merftofen; 08-28-2011 at 12:42 PM.
08-28-2011, 12:04 PM #2
- Join Date
- May 2011
- ');DROP TABLE 'users';--
thats the script used in my menu, you don't need all that to spawn a bot.
08-28-2011, 12:06 PM #3
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.
08-28-2011, 12:34 PM #4
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