Page 1 of 1
need help with ai
Posted: Mon Dec 08, 2003 5:05 am
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.
Posted: Mon Dec 08, 2003 6:40 pm
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)

.
Posted: Mon Dec 08, 2003 6:51 pm
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]
Posted: Tue Dec 09, 2003 8:08 pm
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

Posted: Tue Dec 09, 2003 9:33 pm
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).
Posted: Wed Dec 10, 2003 8:16 am
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...
Posted: Wed Dec 10, 2003 4:38 pm
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
Posted: Thu Dec 11, 2003 1:29 am
by omniscient
um, i can do that w/o the test_ prefix too, mt mohaa install is clean, except for endefs of course
