Jump to content
code34

Dynamic Civilian Life (DCL) scripts

Recommended Posts

diag_log "SERVER Start- Initializing Dynamic Civilian Life";
if(name player != DCLhclientname) exitwith {};
diag_log "WASTELAND Start2- Initialized Dynamic Civilian Life Player Name = %1", (name player);

Using the above code it will log the first line to .RPT but not the second with the player name.

"SERVER Start- Initializing Dynamic Civilian Life"
"Player connected: Spitfire (76561197994785432)"
"Player connected: __SERVER__ ()"
"Player connected: headlessclient (HC3492)"
"SERVER Start2- Initializing Dynamic Civilian Life"

If I remove it they spawn.

My headless client name in the editor is headlessclient

class Item36
	{
		side="LOGIC";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={14497.367,10.181035,5849.4287};
				id=144;
				side="LOGIC";
				vehicle="HeadlessClient_F";
				player="PLAY CDG";
				leader=1;
				skill=0.60000002;
				text="headlessclient";
			};
		};
	};

I tried this

waitUntil {!isNull player};
		if (typeOf player == "HeadlessClient_F") then
		{
private [
		"_allunits",
		"_back",
		"_buildings",
		"_civil",
		"_civiltype",

init.sqf

// civilian side
DCLcivilianside = civilian;

// HC client
DCLusehclient = true;

// HC client name
DCLhclientname = "headlessclient";

Nothing works.

Run out of ideas ?

Just for good measure I tried.

// HC client name
DCLhclientname = "PLAY CDG";

Edited by spitfire007

Share this post


Link to post
Share on other sites

try to use your own player name with DCLhclientname = "HC";

with

if(name player != DCLhclientname) exitwith {};

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

×