Please use this forum to ask all your MoHAA Bots questions / discussions
Moderator: Moderators
small_sumo
Lieutenant General
Posts: 953 Joined: Mon Jul 01, 2002 4:17 pm
Contact:
Post
by small_sumo » Thu Jan 01, 2004 8:39 am
Can we tell bots to do stuff in our script eg
$bots exec global/dissable.scr
or any other command.
Thanks mate.
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Thu Jan 01, 2004 10:47 am
Technically speaking this is possible, but in most cases I would advise against it as it might 'interfere' with the bot scripts.
Krane
Lieutenant General
Posts: 782 Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:
Post
by Krane » Thu Jan 01, 2004 11:23 pm
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
small_sumo
Lieutenant General
Posts: 953 Joined: Mon Jul 01, 2002 4:17 pm
Contact:
Post
by small_sumo » Fri Jan 02, 2004 3:34 am
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.
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Fri Jan 02, 2004 8:44 am
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
}
}