Important Notification:

Due to an ongoing DDOS you might find our website to be slow at times.
Some features, like downloads, might or might not work.
Apologies for the trouble!

 


 
Forum Jump :

Author Message


Posts: 8
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#171193 Posted at 2014-09-30 21:17        
     
in my init.sqf
for [ {_i = 0}, {_i < count(paramsArray)}, {_i = _i + 1} ] do
{
	call compile format
	[
		"PARAMS_%1 = %2",
		(configName ((missionConfigFile >> "Params") select _i)),
		(paramsArray select _i)
	];
};	

in my description.ext
class Params
{
	class Debug
	{
		title = "Enable Debug Mode";
		values[] = {1,0};
		texts[] = {"Enable","Disable"};
		default = 1;
	};
};

in the garrison script
if (PARAMS_Debug == 1) then {
	if (_info) then {
		_mrkName = format ["mrk%1",_garrisonNum];
		_marker = createMarker [_mrkName, getPos _x ];
		_mrkName setMarkerType "mil_dot";
	};
};

Added 18 minutes later:

if your thinking of adding to your scripts you could do it this way

if (Debug_tog > 0) then {
	if (_info) then {
		_mrkName = format ["mrk%1",_garrisonNum];
		_marker = createMarker [_mrkName, getPos _x ];
		_mrkName setMarkerType "mil_dot";
	};
};

add this to the first line of your scripts
Debug_tog = 0;

and you can change the 0 to 1 to turn debug on in your script

This post was edited by hellstorm77 (2014-09-30 21:37, ago)