juandayz Posted June 5, 2017 Report Share Posted June 5, 2017 anyone know how to remove this from rpt 0:53:48 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Haikal Saikal"," IN ","Su25_Ins"] The sqf who spawn it: (located in mpmissions\ and called manually by scroll menu) Spoiler _aiskin = "TK_Commander_EP1"; _plane_class = "Su25_INS"; //////////////////////////CREATE FACTION _this = createCenter east; _this setFriend [west, 0]; _this setFriend [east, 0]; _this setFriend [civil, 0]; _center_1 = _this; _unitGroup = createGroup _center_1; ////////////////////////// /////////////////////////PILOT _pilot = objNull; _pilot = _unitGroup createUnit [_aiskin, [(_startingpos select 0) + 90, (_startingpos select 1) + 100], [], 1, "NONE"]; //_pilot addEventHandler ["handleDamage", {false}]; [_pilot] joinSilent _unitGroup; ///////////////////////// sleep 1; ////////////////////////JET _carrier = createVehicle [_plane_class, [(_startingpos select 0) + 50, (_startingpos select 1) + 50],[], 0, "FLY"]; _carrier setVehicleVarName "heli"; _carrier setFuel 1; _carrier engineOn true; _carrier addEventHandler ["Fired",{(_this select 0) setVehicleAmmo 1}]; _carrier flyInHeight 150; _carrier setVehicleLock "LOCKED"; _carrier addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}]; dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_carrier]; //////////////////////// _pilot assignAsDriver _carrier; _pilot moveInDriver _carrier; _pilot setBehaviour "COMBAT"; variables.sqf ( DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_INS"]; ) i also try comment the line in sched_veh Spoiler sched_safetyVehicle = { { if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ]; //(vehicle _x) setDamage 1; //_x setDamage 1; }; } forEach allUnits; objNull }; as you know.. the AI is not killed by the comment line.. but i leave the diag_log to see if still rpt spawns.. and it does. and also add the "su25_INS" in dynamic_vehicle.sqf Ohh also i have the "TK_Commander_EP1" in Allplayers = []; Link to comment Share on other sites More sharing options...
0 juandayz Posted June 5, 2017 Author Report Share Posted June 5, 2017 if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { about this... i have the (vehicle _x in dayz_serverObjectMonitor).. with this line: dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_carrier]; and: !((TypeOF vehicle _x) in DZE_safeVehicle)) added in my custom variables.sqf DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_INS"]; Link to comment Share on other sites More sharing options...
0 Crude Posted June 5, 2017 Report Share Posted June 5, 2017 I tested and it took some restarts and debugging but works on my test server. dayz_serverObjectMonitor This is only used if you can send it to server or spawn on server Rename Su25_INS to small case ns > Su25_Ins DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_Ins"]; Hope that helps mate juandayz 1 Link to comment Share on other sites More sharing options...
0 juandayz Posted June 5, 2017 Author Report Share Posted June 5, 2017 Just now, Crude said: I tested and it took some restarts and debugging but works on my test server. dayz_serverObjectMonitor This is only used if you can send it to server or spawn on server Rename Su25_INS to small case ns > Su25_Ins DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_Ins"]; Hope that helps mate ok gonna try changing the vehicle id.. anyway do not explain me why is not works that way. i also try an @iben idea setting a variable.. example safety_veh_scheduler. Spoiler sched_safetyVehicle = { { if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { if (vehicle _x getVariable ["dearmyfriendiben",0] == 1) exitWith { }; diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ]; (vehicle _x) setDamage 1; _x setDamage 1; }; } forEach allUnits; objNull }; and in sqf... _carrien setvariable ["dearmyfriendiben",1,true]; get the same issue. Link to comment Share on other sites More sharing options...
0 juandayz Posted June 5, 2017 Author Report Share Posted June 5, 2017 @Crude well i just change the jet id by another ( L39_TK_EP1) and works well... its possible that from almost 100kinds of arma vehicles.. i was choose the one who dsnt works? or is there a logic explanation for this issue? Link to comment Share on other sites More sharing options...
0 Crude Posted June 5, 2017 Report Share Posted June 5, 2017 For mine to work was just case sensitive problem, nice that your works now but with different Vehicle. If you are still wanting the Su25 just give the debug below a try. add to top of loop if(typeOf vehicle _x == "Su25_Ins") then { diag_log format["#%1 = %2", typeOf vehicle _x, DZE_safeVehicle]; diag_log format["#%1 = %2", typeOf vehicle _x, vehicle _x != _x]; diag_log format["#%1 = %2", typeOf vehicle _x, !(vehicle _x in dayz_serverObjectMonitor)]; diag_log format["#%1 = %2", typeOf vehicle _x, !((typeOf vehicle _x) in DZE_safeVehicle)]; }; you should see something like 22:41:06 "#Su25_Ins = ["ParachuteWest","ParachuteC","Su25_Ins","BTR40_TK_INS_EP1","BTR40_TK_GUE_EP1"]" 22:41:06 "#Su25_Ins = true" 22:41:06 "#Su25_Ins = true" 22:41:06 "#Su25_Ins = false" iben and juandayz 2 Link to comment Share on other sites More sharing options...
Question
juandayz
anyone know how to remove this from rpt
0:53:48 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Haikal Saikal"," IN ","Su25_Ins"]
The sqf who spawn it: (located in mpmissions\ and called manually by scroll menu)
_aiskin = "TK_Commander_EP1"; _plane_class = "Su25_INS"; //////////////////////////CREATE FACTION _this = createCenter east; _this setFriend [west, 0]; _this setFriend [east, 0]; _this setFriend [civil, 0]; _center_1 = _this; _unitGroup = createGroup _center_1; ////////////////////////// /////////////////////////PILOT _pilot = objNull; _pilot = _unitGroup createUnit [_aiskin, [(_startingpos select 0) + 90, (_startingpos select 1) + 100], [], 1, "NONE"]; //_pilot addEventHandler ["handleDamage", {false}]; [_pilot] joinSilent _unitGroup; ///////////////////////// sleep 1; ////////////////////////JET _carrier = createVehicle [_plane_class, [(_startingpos select 0) + 50, (_startingpos select 1) + 50],[], 0, "FLY"]; _carrier setVehicleVarName "heli"; _carrier setFuel 1; _carrier engineOn true; _carrier addEventHandler ["Fired",{(_this select 0) setVehicleAmmo 1}]; _carrier flyInHeight 150; _carrier setVehicleLock "LOCKED"; _carrier addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}]; dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_carrier]; //////////////////////// _pilot assignAsDriver _carrier; _pilot moveInDriver _carrier; _pilot setBehaviour "COMBAT";
variables.sqf ( DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_INS"]; )
i also try comment the line in sched_veh
sched_safetyVehicle = { { if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ]; //(vehicle _x) setDamage 1; //_x setDamage 1; }; } forEach allUnits; objNull };
as you know.. the AI is not killed by the comment line.. but i leave the diag_log to see if still rpt spawns.. and it does.
and also add the "su25_INS" in dynamic_vehicle.sqf
Ohh also i have the "TK_Commander_EP1" in Allplayers = [];
Link to comment
Share on other sites
5 answers 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