Jump to content
Sign in to follow this  
Aralvar

Some editor questions

Recommended Posts

Sorry for posting this stuff in the troubleshooting area earlier.

1. Is there a way to make enemies idle (EDIT: as well as making them walk rather than run until they spot an enemy)? For example, standing there with their weapons lowered very casually.

2. Is there a way to make enemies that only have a pistol keep their pistol in their backpack or uniform and then pull it out when they see an enemy?

3. Is there a way to make enemies that have binoculars or a rangefinder scan the area?

Edited by Aralvar

Share this post


Link to post
Share on other sites

I only know the first one.

1. When you set the waypoint for the ai, set their speed to limited, and their behavior to safe.

When they spot an enemy, they will go into combat mode.

I have sometimes seen the ai use binoculars, but I'm not sure what causes them to do it.

Share this post


Link to post
Share on other sites

hey man!

1. As rhino said, set the AI waypoint to to safe and they will chill until they detect hostiles. You can also add this to the unit init in the editor: this setBehaviour "SAFE";

2. I believe they have added a new addtouniform command but I have never used it. A work around for this to use a trigger:

1. place a hostile unit and name it hostile1

2. in the units init line put: removeallweapons this; (I assume you want them to have only a pistol and draw it only when they see an enemy?)

3. create a trigger and define an area. I usually leave it as default and set the condition to blufor --> detected by opfor.

4. place this in the trigger on activation field: hostile1 add magazines ["16Rnd_9x21_Mag", 4]; hostile1 addweapon "hgun_Rook40_F";

5. test

This works like this:

When your blufor unit is detected by opfor, the trigger will fire and give your hostile1 guy 4 magazines and a rook pistol. He will draw it and it will look like he had it all along.

as for your 3rd question: I find that if you give an AI laserdesignators, they will tend to scan with them but I dont know how to force them to do it.

If you have more questions, PM me!

Hope I helped

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×