Page 1 of 1
Enemies(Newbie)
Posted: Sat Dec 21, 2002 11:34 am
by Guest
when i open the map that comes with MOHAATools(firefight) the people are fighting and everyones happy. but when i copy one of them to my map all they do is stare forward. when i made my own by rightclicking and selecting ai>german>soldier they actually looked at me and when i got close to them they hit me with their gun. but they didnt shoot at me and there was no animation when they hit me with their gun. How do i make a working enemy?
Posted: Sat Dec 21, 2002 11:48 am
by mohaa_rox
You have to put this line into your script after main:
exec global/ai.scr
You also have to name your map to test_xxx.bsp.
Posted: Sat Dec 21, 2002 12:48 pm
by jv_map
You don't need that global/ai.scr line, it's only used by enemy spawners that are activated by triggers. You'll notice test_firefight doesn't even have a script.
You're right about that 'test_' thing, although there is a better way to get it working. That's described in
this tutorial. It's much more complicated however.
Posted: Sat Dec 21, 2002 1:34 pm
by Guest
thanks both of you
