Search the Community
Showing results for tags 'setgroupowner'.
Found 1 result
-
Help with headless client and setgroupowner
Isee-deadpeepz posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello! I am trying offload my ai, spawned by my server via a mod, to a headless client! So far i have succesfully made the headless client and made it log on to the server and be confirmed that it is infact a headless client. I am using this _allHCs = entities "HeadlessClient_F"; to get the headless client wich to me atleast confirms even more that the headless client is in ok shape. The problem is that when i loop through all the ai groups on the server, and then use the command "setgroupowner", the script returns false. I have no clue why it would return false (other then something is wrong). Any help on how i could debug the reason on why it returns false? The server is fully updated to newest version, and modded with the exile mod, and spawning ai using dms ai. server rpt : https://ufile.io/dk51s From line 1377 i exited the program, thats what the exception is. The lines at 1352 are from my script: { _theGroup = group _x; _isLocal = local _theGroup; if _isLocal then { _hcArr = entities "HeadlessClient_F"; _size = count _hcArr; if (_size > 0) then { _hc = _hcArr select 0; _temp = parseNumber (getPlayerUID _hc); (format ["AILocalityManager :: peter Headless Client : %1", _hc]) call DMS_fnc_DebugLog; if (_theGroup setGroupOwner _temp) then //headless ai { (format ["AILocalityManager :: Transfering ownership of group %1 to headless client",_theGroup]) call DMS_fnc_DebugLog; }; }; }; } forEach allUnits guess my real name lol... headless client rpt: https://ufile.io/u5u10 Any help would be appreciated ! :) Edit: Zero help thank you ! But i found the error so problem solved !