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:
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?
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?