jacmac 2 Posted March 9, 2014 I've discovered that a Headless Client in ARMA 3 has some strange properties. It is not a player, even though it takes a player slot and requires a valid Steam account logged in to operate. Consider the following code in init.sqf: if (!isServer && !hasInterface) then {sleep 0.1;waitUntil {!isNull player}}; The Headless Client will hang indefinitely with this code, even though it connects as a player, takes up a player slot, and can even appear in game as another player. The reason I bring this up is that it is kind of critical to get the ID of the headless client so that you can publicVariableClient data to the headless client. Without being able to get an ID, the best you can do is have it act as a pseudo-server (running specific code that would otherwise run on the server via "(!isServer && !hasInterface)") without direct communication from the server. It can get indirect communication form the server, but that means a huge amount of useless data pumped over the network, defeating the purpose of the Headless Client. I've spent several hours trying to come up with a way to get a player ID out of the Headless Client, but it appears that there simply isn't any! Share this post Link to post Share on other sites
terox 316 Posted March 9, 2014 depbo patrol ops by Roy86, he manages it :-) Share this post Link to post Share on other sites
Viba 1 Posted March 10, 2014 Look up the headless clients UID and do this? {if (getplayeruid _x == "HCUID") then {_HC = _x};} forEach playableUnits; somecode = {}; (owner _HC) publicvariableclient "somecode"; Share this post Link to post Share on other sites
jacmac 2 Posted March 11, 2014 Look up the headless clients UID and do this? {if (getplayeruid _x == "HCUID") then {_HC = _x};} forEach playableUnits; somecode = {}; (owner _HC) publicvariableclient "somecode"; I'll give this a try. The crux of the problem appears to be that the headless client is not considered a player, and I assume that includes playable units. Share this post Link to post Share on other sites