I am having trouble getting protection in the trader cities, could someone please point me in the right direction?
The following, I have done but the protection doesn't work when you enter the trade area, nor does the message regarding God mode come up as in the safezone.sqf.
I have added safezone.sqf to the root folder of my mission.pbo
safezone.sqf:
//Mod by Zane
Private ["_Basis","_EH_Fired","_EH_Hit","_EH_Killed"];
_Basis = _this select 0; //Basisname
while {true} do
{
waitUntil {vehicle player in list _Basis};
titleText ["Welcome to the Trading post, God mode ON.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 0;
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious = {};
player allowDamage false;
waitUntil {! (vehicle player in list _Basis)};
titleText ["Leaving Trading Post, God mode OFF.", "PLAIN DOWN", 3];
sleep 2;
player setUnitRecoilCoefficient 1;
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
}
I have changed my class sensors in mission.sqm to:
Question
KrisiS
Hi,
I am having trouble getting protection in the trader cities, could someone please point me in the right direction?
The following, I have done but the protection doesn't work when you enter the trade area, nor does the message regarding God mode come up as in the safezone.sqf.
I have added safezone.sqf to the root folder of my mission.pbo
safezone.sqf:
I have changed my class sensors in mission.sqm to:
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now