Page 1 of 1

Commanding bots??

Posted: Thu Jan 01, 2004 8:39 am
by small_sumo
Can we tell bots to do stuff in our script eg

$bots exec global/dissable.scr

or any other command.

Thanks mate.

Posted: Thu Jan 01, 2004 10:47 am
by jv_map
Technically speaking this is possible, but in most cases I would advise against it as it might 'interfere' with the bot scripts.

Posted: Thu Jan 01, 2004 11:23 pm
by Krane
jv is right w/ spawned bots. But if you place a bot in your map they'll respond to your threads. I have a jvbot placed in a test map. He respond to my thread, something like:

$testguy animscript global/crouch.scr

Posted: Fri Jan 02, 2004 3:34 am
by small_sumo
Ok so how would they go with $bots exec global/dissable.scr ? I will give it a go anyway. All theyre combat noises kinda bummers the cinematic endings i do for my levels.

Posted: Fri Jan 02, 2004 8:44 am
by jv_map
Well it is pretty complicated to 'get' a bot via script. This is probably the best way:

Code: Select all

for(local.i = 1; local.i <= level.botlastid; local.i++)
{
	local.bot = level.actualbots[local.i]
	if(isAlive local.bot)
	{
		// your code here
	}
}