Jump to content
Sign in to follow this  
Isee-deadpeepz

Help with headless client and setgroupowner

Recommended Posts

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 !

 
 

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
Sign in to follow this  

×