Making Destroyed Vehicles Drop Loot?

[GSG] Az

Member
Hi all,

I was chasing some help with making destroyed vehicles drop their contents.

I'm assuming I need to override and modify "z\addons\dayz_code\compile\vehicle_handlekilled.sqf"

And I further assume that here is where I need to add the logic:

Code:
if (isServer) then {
    [_unit, "killed"] call server_updateObject;
} else {
    PVDZE_veh_Update = [_unit, "killed"];
    publicVariableServer "PVDZE_veh_Update";
};
 
_unit removeAllEventHandlers "HandleDamage";
_unit removeAllEventHandlers "Killed";
_unit removeAllEventHandlers "GetIn";
_unit removeAllEventHandlers "GetOut";

I know how to code the loot dropping, but i'm not quite sure how to get the vehicles contents? I've searched BIKI and have come up empty :(

Can anyone help?
 
Looking for help with this as well. Would like to run server admin run convoys where the vehicles drop loot, as well as player vehicles that drop their loot.
 
You would need to add it to the server_updateObject.sqf in the server.pbo
in the _object_damage area.
 
Back
Top