Bots 'guarding' spawn area...

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

Moderator: Moderators

Post Reply
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Bots 'guarding' spawn area...

Post by Kalti »

Well... as the topic suggests... I would like to 'arm' my map with some Bots wich should mainly be static but otherwise sniping a certain area.

They should be kill-able though, only to respawn and get back to their sniping spot... wich lies in the spawn area.

It's an objective based map, where teams have to take possesion of a specific part of the map to become victorious...

Team spawn areas are to be NOT reachable for the other team, however to make sure not even one enemy gets through I need the Bot snipers...

So, what about it ? is this feasible ?
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmm well I think a map specific script is the way to go rather than using the bots script. I don't think there's a very efficient way to use my bots for this task :( :oops:

Or maybe there is. Just seems like an 'overkill' to me :?
Image
User avatar
lefty35
Sergeant
Posts: 69
Joined: Mon May 05, 2003 9:26 pm
Location: Undisclosed
Contact:

Post by lefty35 »

Just thinking, but couldnt you just make a trigger that kills anyone from the opposite team if they run into it?
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Post by Kalti »

lefty35 wrote:Just thinking, but couldnt you just make a trigger that kills anyone from the opposite team if they run into it?
That's to easy... I wanna use Bots, and learn how to do that... :D
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

you could do somethign like this.

Code: Select all

that_bastard_guy:

local.getawayfromme = spawn german_waffenss_nco
local.getawayfromme.origin = $spawnhere.origin
local.getawayfromme gun "Mauser KAR 98D Sniper"
local.getawayfromme accuracy 90
local.getawayfromme leash 64
local.getawayfromme fixedleash 1
local.getawayfromme health 100

local.getawayfromme waittill death
thread that_bastard_guy
end
long as i didnt leave anything out it should work. keep in mind you have to mess around with somefiles to get ai to work in multiplayer. also, all players count as american, so you gotta do more special stuff if you want him to only attack members of a certain team.
Post Reply