Mack. 58 Posted July 5, 2019 Hello, Ive been making a mission using the excellent Hetman NR6 including support for 2 headless clients with around 400 AI in total. I have been attempting to write a script to manage the offloading of AI to the headless clients however my scripting skill is very limited. I would use use Werthles script or ACE3 however I am unable to do so due to the following limitations to ensure compatibility with Hetman: 1) Artillery units must remain on the server 2) All BLUEFOR units must be on the same headless client 3) All OPFOR units must be on the same headless client My script below is called from the init.sqf however it appears no actual offloading is actually taking place. Any help is greatly appreciated. Mack if (isDedicated) then { waitUntil {time > 2}; [] spawn { while {true} do { if (!isNull HC1) then { _OPFOR_GROUPS = (allGroups select { side _x == east }); _OPFOR_GROUPS = _OPFOR_GROUPS - MACK_Arty_Groups_OPFOR; // OPFOR_GROUPS_OUTPUT = _OPFOR_GROUPS; _HC1OWNER = owner HC1; {_x setGroupOwner _HC1OWNER; } foreach _OPFOR_GROUPS; }; if (!isNull HC2) then { _BLUFOR_GROUPS = (allGroups select { side _x == west }); _BLUFOR_GROUPS = _BLUFOR_GROUPS - MACK_Arty_Groups_BLUFOR; _HC2OWNER = owner HC2; {_x setGroupOwner _HC2OWNER; } foreach _BLUFOR_GROUPS; }; sleep 60; }; }; }; Share this post Link to post Share on other sites
Mack. 58 Posted July 13, 2019 Realised the script wasn't working because the artillery groups had not been added to MACK_Arty_Groups_OPFOR and MACK_Arty_Groups_BLUFOR. Share this post Link to post Share on other sites