Enemies(Newbie)

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

Moderator: Moderators

Post Reply
Guest

Enemies(Newbie)

Post 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?
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Guest

Post by Guest »

thanks both of you :)
Post Reply