PDA

View Full Version : Question from a total noob about changing variable in the ACM module



Redfist
Jun 12 2009, 10:00
Hi all,

I read on the BI-wiki page that you can change the configuration of the Ambient Combat Manager module (and maybe even the Secom module), but - I have absolutely no idea of how to do it. E.g.

[<intensity | Scalar>, <ACM reference | Object>] call BIS_ACM_setIntensityFunc;

Is a line to affect the inensity of the fighting. Where do I put it? Where should the number variable go within the particular line?

I am a total editing noob, so please don't be impatient.

Also, does anyone know how I can spawn in enemy units and get them to behave in a certain way via a trigger? (e.g attack a village or patrol a route)

Thanks,

:)

])rStrangelove
Jun 12 2009, 10:10
Plz use the forum search. We have a thread for that already: http://forums.bistudio.com/showpost.php?p=1297734&postcount=33

Lol i'm sounding like Placebo. :D

HyperWeaseL
Jun 12 2009, 10:43
Try this post by:trini scourge

http://forums.bistudio.com/showthread.php?t=73393&page=6

For those that still need help with getting it to work, copy and paste this into your mission's "init.sqf", and change whatever you need to.

Code:
waitUntil {!isNil {BIS_ACM getVariable "initDone"}};
waitUntil {BIS_ACM getVariable "initDone"};

//Sets frequency and number of patrols (0-1). BIS_ACM is module name
[1, BIS_ACM] call BIS_ACM_setIntensityFunc;

//min max spawn distance
[BIS_ACM, 300, 600] call BIS_ACM_setSpawnDistanceFunc;

//factions to be spawned
[["USMC", "RU"], BIS_ACM] call BIS_ACM_setFactionsFunc;

//Skill range for spawned units
[0, 0.6, BIS_ACM] call BIS_ACM_setSkillFunc;

//Amount of ammo spawned units possess
[0.2, 0.5, BIS_ACM] call BIS_ACM_setAmmoFunc;

//Type of patrol. With 0 meaning no chance of appearing, and 1 meaning 100% chance. -1 removes patrol type completely.
["ground_patrol", 1, BIS_ACM] call BIS_ACM_setTypeChanceFunc;

["air_patrol", 0, BIS_ACM] call BIS_ACM_setTypeChanceFunc;
__________________

:)

Redfist
Jun 12 2009, 12:43
Thanks guys :)

I will try to make sense of your replies.
Although, it appears as though nobody really understands what being a 'noob' means. Are there any other beginner-friendly forums around? I get the idea that most people here are quite experience map makers.

Thanks for help anyway. Really appreciate it. :)