GeKko103
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by GeKko103
-
-
Could you poste the line which i have to add, that vehicles only have got GodMode in the PlotPoleArea if there is not any gear in it?
-
I have got several Problems with that script. First of all it works on Server restart. After this locked vehicles near the PlotPole are indestructible, but if i unlock them and take place in the drivers seat it will become destructible even if i lock it again!
Any ideas how to solve it?
In addition i would like to have the function that vehicles which got gear in it stay destructible, sth like this:
&& ((count (magazines _obj)) == 0) && ((count (weapons _obj)) == 0)
Does anybody knows how to add it, so it will work because i do not want those vehciles as vault replacement!
Thanks for any answer :-* -
Hey guys, i am looking for help.
I have got something like a Script ;-) but it does not work for me. I put it on the bottom of the dayzcode.pbo/init/compiles.sqf:if (isNil "fnc_vehicle_handleDamage") then {fnc_vehicle_handleDamage = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_handleDamage.sqf";}; vehicle_handleDamage = { private["_obj","_result","_state"]; _obj = _this select 0; if ((count(nearestObjects [_obj, ["Plastic_Pole_EP1_DZ"],30]) > 0) && (locked _obj && (count (crew _obj)) == 0) && (count (magazines _obj)) == 0) && (count (weapons _obj)) == 0)) exitWith {_obj allowDamage false;}; _state = false; {if ((_obj distance (_x select 0)) < 100) then {_state = true;};} forEach safezones; if (_state) exitWith {_obj allowDamage false;}; _obj allowDamage true; _result = _this call fnc_vehicle_handleDamage; _result };
have got several problems with that. First of all it works on Server Restart. After this locked vehicles near PlotPole are indestructible, but if i unlock it and take place in the drivers seat it will become destrcutible even if i lock it again. Furthermore it stays indestructible after server restart in spite of there is gear in it.
I hope anybody got a solution for that. Please guys i am despaired! -
It does not work for me! When i am spawning a car into the plotpole area it is indestructible. But when i am leaving the area with the car and coming back, it is always destructible!
Any idea what i am doing wrong? -
Is there any oppertunity to change the script so that the vehicle is destroyable whenever there is any loot in it?
So i think it would be a great solution to stopp using vehicles as safes while this script is active.
[RELEASE] Vehicle Godmode in Plotpoles & Safezones & Everywhere Locked 2.0
in A2: Epoch Mods (1.0.5.1)
Posted
Ok thank you very much!
But i have got one last question.
Which .pbo do i have to use? Mission.pbo or Code.pbo?