jakeplissken 81 Posted December 15, 2015 I have found this code in the functions viewer regarding the sites module. if (isNil 'BIS_initSitesRunning') then { BIS_initSitesRunning = TRUE; ['[SITES] Modules config init'] call BIS_fnc_logFormat; if (isServer) then {execVM '\A3\modules_f\sites\init_core.sqf'} else {execVM '\A3\modules_f\sites\init_client.sqf'}; }; I am wondering how I can customize this without a mod to enable the module to spawn RHS INDFOR insurgents instead of AAF. And is the module in MP run on the client or the server? Thank you for any help. Share this post Link to post Share on other sites
jakeplissken 81 Posted December 15, 2015 Actually, I found the source code in the modules_f.pbo. _this setVariable ["garrison", []]; private ["_occupation"]; if (isNil {_this getVariable "buildingOccupationIndex"}) then {_occupation = (0.3 + random 0.7)} else {_occupation = parseNumber (_this getVariable "buildingOccupationIndex")}; {[_x, _this, _occupation] call BIS_occupySiteBuilding} forEach (position _this nearObjects ["House", parseNumber (_this getVariable "axisA")]); _siteSide = _this call BIS_getCorrectSiteSide; _newGrp = [position _this, _siteSide, [_this getVariable "faction", "fireteam"] call BIS_pickSiteGroup, [], [], [0.2, 0.5]] call BIS_fnc_spawnGroup; _newGrp setFormation "DIAMOND"; _this setVariable ["garrison", (_this getVariable "garrison") + [_newGrp]]; [_newGrp, _this] execFSM "A3\modules_f\sites\behaviour\military_garrison.fsm"; [_this, "sentry", 2] call BIS_spawnSitePatrol I should be able to pick this apart and use the garrisoning script to do what I want, I just wish there was an empty sites module that you could use to spawn any faction by entering the classname. That would be most helpful. Share this post Link to post Share on other sites
Larrow 2822 Posted December 15, 2015 See this post HERE Share this post Link to post Share on other sites
jakeplissken 81 Posted December 18, 2015 I have solved this problem. I found this script here: http://www.armaholic.com/page.php?id=22522 And I moved the area to Ifestiona. I put the appropriate script in each squad leader and they promptly occupied each building. Now I have an area with custom units occupying buildings. And this is very easy to use. I just wish that BIS_occupySiteBuilding was documented, so I could use that. Share this post Link to post Share on other sites