FreakingFred Posted May 27, 2014 Report Share Posted May 27, 2014 The method that FreakingFred posted works, but it kills R3F towing. Any way to make this work alongside R3F? I used that edit and have R3F towing and never experienced any issues. Link to comment Share on other sites More sharing options...
Chris9183 Posted May 27, 2014 Report Share Posted May 27, 2014 I used that edit and have R3F towing and never experienced any issues. My mistake, I killed R3F towing. Working fine now, edited my first post too. Link to comment Share on other sites More sharing options...
Kimzer Posted May 27, 2014 Report Share Posted May 27, 2014 @ebayn0.0b Would this take in count for players inside the vehicles? I really dont want my players to figure out that they are able to enter a vehicle. Have a friend lock it and then be in an invinsible vehicle. Unless the vehicle is completely disabled while being locked? Can one use the minigun on a locked suv if inside for example? Link to comment Share on other sites More sharing options...
cen Posted May 27, 2014 Report Share Posted May 27, 2014 (count (crew _unit)) == 0) Link to comment Share on other sites More sharing options...
Kimzer Posted May 27, 2014 Report Share Posted May 27, 2014 Awesome! Link to comment Share on other sites More sharing options...
PetuniaEpoch Posted May 27, 2014 Report Share Posted May 27, 2014 Hey :) Thanks for the below - works well, APART from one odd problem I've noticed! This only works with vehicles you've move since a reboot - Anything not touched after a reboot, will take damage :( Any ideas on why or a fix? Link to comment Share on other sites More sharing options...
PetuniaEpoch Posted May 28, 2014 Report Share Posted May 28, 2014 Ahhhhhhhhhh!!!! Thanks! Will test that tomrw :D Link to comment Share on other sites More sharing options...
BOBO Posted May 28, 2014 Report Share Posted May 28, 2014 I have a problem when using this. after I have locked the car within the range of the plot pole, it stays indestructible after I unlock it, it also stays indestructible after I drive away from the plot pole. Link to comment Share on other sites More sharing options...
Buck0 Posted May 30, 2014 Report Share Posted May 30, 2014 I have a problem when using this. after I have locked the car within the range of the plot pole, it stays indestructible after I unlock it, it also stays indestructible after I drive away from the plot pole. can confirm this is the case, any idea of a fix ebay? Link to comment Share on other sites More sharing options...
Buck0 Posted May 31, 2014 Report Share Posted May 31, 2014 ty, will test out Link to comment Share on other sites More sharing options...
Shadow Hawk Posted June 10, 2014 Report Share Posted June 10, 2014 Do what FreakingFred said in post #33. Get vehicle_handleDamage.sqf from dayz_code and call it from compiles.sqf. think i figured it out,sorry Link to comment Share on other sites More sharing options...
KamikazeXeX Posted June 26, 2014 Report Share Posted June 26, 2014 A comment that hasn't been answered since the 26th of march :P is there a way to incorporate this with the salvage script so basically you can't salvage locked vehicles, i would try at it myself but i would indefinitely break something important xD Link to comment Share on other sites More sharing options...
flakvest Posted June 26, 2014 Report Share Posted June 26, 2014 Link to comment Share on other sites More sharing options...
JackalopeHunter Posted June 28, 2014 Report Share Posted June 28, 2014 Removed Link to comment Share on other sites More sharing options...
P0k3r_OF_Sm0t Posted July 16, 2014 Report Share Posted July 16, 2014 InfiSTAR's code kinda works. The first vehicle I tried was invincible when locked & able to be destroyed when unlocked. However when I tried another vehicle, it was invincible no matter what. Any solution for that? Also, if I wanted to go the other route, what DayZ_Code.pbo would you use when running overpoch? The one in the @epoch folder or the one in the @overwatch folder? Link to comment Share on other sites More sharing options...
megaz Posted July 16, 2014 Report Share Posted July 16, 2014 If you change line 12 to if (locked _unit && (count (crew _unit)) == 0) exitWith {}; it will stop players from being able to abuse the script. Basically, this just checks if the vehicle has any players in it and if it does, regardless of whether it is locked or not, it will take damage. Unmanned locked vehicles will still take no damage. Guys am i being stupid, I lost a bit in this thread Do i need to make a new Vehicledamage.sqf (copy from dayz_code.pbo) and delete all that is in there and replace with the above code or do I have to add the above code to the init.sqf and if so where at the bottom or in a specific place thanks# MegaZ Link to comment Share on other sites More sharing options...
GeKko103 Posted August 5, 2014 Report Share Posted August 5, 2014 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. Link to comment Share on other sites More sharing options...
prue420 Posted August 6, 2014 Report Share Posted August 6, 2014 I have tried all of these ways and fixes and my vehicles still have god mode after you unlock it. Anyone have working files? Link to comment Share on other sites More sharing options...
prue420 Posted August 6, 2014 Report Share Posted August 6, 2014 Big issues with script if you unlock your vehicle then lock it and shoot it then lock it and shoot it again it blows up every time first hit with any gun. Anyone having this issue. Link to comment Share on other sites More sharing options...
GeKko103 Posted August 13, 2014 Report Share Posted August 13, 2014 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? Link to comment Share on other sites More sharing options...
LunatikCH Posted August 14, 2014 Report Share Posted August 14, 2014 could some one re-upload the plot only version? it seems they have been removed. Thanks Link to comment Share on other sites More sharing options...
Phail Posted August 20, 2014 Report Share Posted August 20, 2014 I don't have the original version, i just looked at what has been posted here. This worked (with limited testing) as intended for near a plot pole. I set it to only 10 meters from the pole so you can adjust as you wish. If you find it doesn't work right I would like to here about it. /*********************************************************** ASSIGN DAMAGE TO A UNIT - Function Vehicle_HandleDamage - [unit, selectionName, damage, source, projectile] call Vehicle_HandleDamage; ************************************************************/ private["_selection","_state","_strH","_total","_unit"]; _unit = _this select 0; _selection = _this select 1; _total = _this select 2; _state = false; if ((locked _unit && (count (crew _unit)) == 0) && (count(nearestObjects [_unit, ["Plastic_Pole_EP1_DZ"],10]) > 0)) exitWith {_state = true;}; if (_state) exitWith {}; if (_selection != "") then {_strH = "hit_" + _selection;} else {_strH = "totalDmg";}; if (_total >= 0.98) then {_total = 1.0;}; if (local _unit) then { if (_total > 0) then { _unit setVariable [_strH, _total, true]; _unit setHit [_selection, _total]; if (isServer) then { [_unit, "damage"] call server_updateObject; } else { PVDZE_veh_Update = [_unit,"damage"]; publicVariableServer "PVDZE_veh_Update"; }; }; } else { PVDZE_send = [_unit,"VehHandleDam",_this]; publicVariableServer "PVDZE_send"; }; _total Link to comment Share on other sites More sharing options...
Guest gr8_boi52 Posted September 3, 2014 Report Share Posted September 3, 2014 How can i use this script to make mountain bike indestructible only. Whether you are in them or not they cannot be damaged? is it possible? Link to comment Share on other sites More sharing options...
Donnovan Posted September 20, 2014 Report Share Posted September 20, 2014 FreakingFred solution don't work for me.Everything runs ok until you enter the vehicle driver position. After that no matter if you lock the vehicle, it does not have god mode.If you logoff and rejoin the game, it will work as wanted again (locked = no damage). Link to comment Share on other sites More sharing options...
deicide Posted July 4, 2015 Report Share Posted July 4, 2015 Is there a way to make sure the vehicle is empty also? I thought it was supposed to but I found out it does not. :P Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now