Commanding bots??

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Commanding bots??

Post 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.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post 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
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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
	}
}
Image
Post Reply