Jump to content

Recommended Posts

Hello,

I'm trying to figure out how to use this function:

BIS_fnc_prepareAO

I understand the function needs a trigger placed for it to work.

Just not understanding how to use it fully.

thanks for the  help in advance.

Share this post


Link to post
Share on other sites

Oh, woops.

I think I figured this out:

[(presence density)] call BIS_fnc_prepareAO;

and then have a trigger named GEN_infantry ?

Going to try this out tonight. 

Share this post


Link to post
Share on other sites
3 hours ago, Midnighters said:

[(presence density)] call BIS_fnc_prepareAO;

Have not used BIS_fnc_prepareAO, but the biki says it should only take 1 variable rather than an array.

 

Like so:

(presence density) call BIS_fnc_prepareAO;

And be sure to have a circular trigger called GEN_infantry where the min axis is 500m.

Share this post


Link to post
Share on other sites
51 minutes ago, dchan200 said:

Have not used BIS_fnc_prepareAO, but the biki says it should only take 1 variable rather than an array.

 

Like so:


(presence density) call BIS_fnc_prepareAO;

And be sure to have a circular trigger called GEN_infantry where the min axis is 500m.

Yep yep, thanks for clarifying that for me.

Going to give it a shot now.

They even have a function for drawing AO outlines in combo with this.

Pretty cool stuff.

Share this post


Link to post
Share on other sites
2 hours ago, dchan200 said:

Have not used BIS_fnc_prepareAO, but the biki says it should only take 1 variable rather than an array.

 

Like so:


(presence density) call BIS_fnc_prepareAO;

And be sure to have a circular trigger called GEN_infantry where the min axis is 500m.

doesn't seem to work..

No errors but no enemies at the same time.

drawAO doesn't work either with the AO.

Share this post


Link to post
Share on other sites

Looks like Larrow has written a post about how to use BIS_fnc_prepareAO. Perhaps you can find some useful information there:

 

Share this post


Link to post
Share on other sites

You can also put this into your initServer.sqf.

 

simMan = "logic" createVehicle (getPos player);
simMan setVariable ["radius", 1200]; // for testing purposes, will be 1500 in mission
simMan setVariable ["excludeAir", true];
simManHandle = [simMan] spawn BIS_fnc_moduleSimulationManager;

 

Then this code.

 

12 call BIS_fnc_prepareAO;

Then just add a trigger with the trigger text GEN_infantry and side OPFOR. This will spawn the AI in the radius.

 

Add a trigger that is 10x10 meters with the side OPFOR and trigger text GEN_ammo to spawn ammo crates.

 

Share this post


Link to post
Share on other sites
On 1/18/2017 at 6:07 PM, dchan200 said:

Looks like Larrow has written a post about how to use BIS_fnc_prepareAO. Perhaps you can find some useful information there:

 

To Dchan200:

I had used a approach similarly or exactly like Larrows.

No errors, but no ai.

On 1/19/2017 at 9:20 PM, jakeplissken said:

You can also put this into your initServer.sqf.

 


simMan = "logic" createVehicle (getPos player);
simMan setVariable ["radius", 1200]; // for testing purposes, will be 1500 in mission
simMan setVariable ["excludeAir", true];
simManHandle = [simMan] spawn BIS_fnc_moduleSimulationManager;

 

Then this code.

 


12 call BIS_fnc_prepareAO;

Then just add a trigger with the trigger text GEN_infantry and side OPFOR. This will spawn the AI in the radius.

 

Add a trigger that is 10x10 meters with the side OPFOR and trigger text GEN_ammo to spawn ammo crates.

 

To jake : 

interesting approach,

I'll take a swing at this.

Very interesting use of the moduleSimulationMaanger, no examples were provided in the biki.

So that's useful.

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

×