need help with ai

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
planettwo
Private
Posts: 3
Joined: Sun Nov 16, 2003 4:12 am

need help with ai

Post by planettwo »

I'm a newbie and am trying to create a single player map.

I put german soldiers into the map but they just stand around and won't attack.

Is there a key/value property I need to set for the soldiers? Or is it something else I'm doing wrong?

Thanks in advance for the help.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

This is a very common problem and is due to the way mohaa is designed.

There's basically two ways to fix this: Either prefix your map's filename 'test_' or read the 'single player maps without test_' tutorial (you can find it on the main page) ;).
Image
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

ummm... i may be wrong but don't you need to do this first:
This is what i always thouht, i wrote this on another ppost to explain it:

Right click and add a trigger->multiple to your map. Position it so it is inside you info->player->start. Press 'n' (with the trigger->multiple selected) and input a key of 'target' and a value of 'badguy' (it can be anything, but it must match the setting you put on you ai, which we are coming to)

Now add your enemy, right click ai->german->wehrmact->soldier (or any in the ai menu, but it would be logical if they were german). Press 'i' (with the ai selected) and it should open a new window. You can set loads of cool stuff here, its options are explained in a AI Tips. But now all we want is the targetname field. Type 'badguy' and press enter, then press escape to exit the window. You should now see a red line from the ai to the trigger. As long as your ai has a gun (which it does by default, put you can change this by pressing 'i') it should shoot you when you play the map.
With me doing this it worked without the test_ prefix and all. am i right in thinking this?[/quote]
"We must become the change we want to see in the world" (Mahatma Gandhi)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

m4rine wrote:With me doing this it worked without the test_ prefix and all. am i right in thinking this?
Nope sorry... you are way off :?
Image
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

um... but i dunno, it worked for me without the test_, and it was in a tutorial somewhere (i think a .map one). i know i didnt dream it up; i survive off tuts i never discover anything myself (not that i dont try).
"We must become the change we want to see in the world" (Mahatma Gandhi)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think it is because you may have a modified new_generic_human.tik in some pk3 file in your main folder. I suppose it won't work on a clean installation...
Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Look here and read how the ai was created but yeah what jv said about having the map named test_blahblah.bsp is the big one. This tut should help you get em in there so you can start working with them.

http://users.1st.net/kimberly/tutorial/ai.htm
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

um, i can do that w/o the test_ prefix too, mt mohaa install is clean, except for endefs of course :wink:
Post Reply