Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cScripts/functions/modules/fn_zenModule_rekitVehicle.sqf
Copy link
Contributor

@AndreasBrostrom AndreasBrostrom Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just repair and rearme it as well cause this is doign so much other stuff.

_objectPos setDamage 0;
_objectPos setFuel 1;

Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,22 @@
_objectPos setVariable [QEGVAR(Vehicle,Type), nil, true];
};

_objectPos setVariable [QEGVAR(Vehicle,Functions), nil, true];
_objectPos setVariable [QEGVAR(Vehicle,Inventory), nil, true];
_objectPos setVariable [QEGVAR(Vehicle,PylonLoadout), nil, true];
_objectPos setVariable [QEGVAR(Vehicle,Cosmetics), nil, true];
_objectPos setVariable [QEGVAR(Vehicle,StagingActions), nil, true];
_objectPos setVariable [QEGVAR(Vehicle,Radio), nil, true];


private _cargoArray = _objectPos getVariable ["ace_cargo_loaded",[]];

{
[_x, _objectPos] call ace_cargo_fnc_removeCargoItem;

} forEach _cargoArray;

sleep 0.05;

_objectPos call EFUNC(vehicle,addFunctions);
_objectPos call EFUNC(vehicle,addInventory);
_objectPos call EFUNC(vehicle,addPylonLoadout);
Expand Down