Skip to content

Commit

Permalink
Garage, items saved
Browse files Browse the repository at this point in the history
When garaging a vehicle the gears in the inventory will be stored into the Arsenal inventory as it used to be in the past.
  • Loading branch information
StefArma committed Nov 20, 2017
1 parent d0cfc2c commit b2af291
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions AntistasiOfficial.Altis/Functions/fn_garageVehicle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@ params [["_FIA", false]];
private ["_veh","_vehType", "_permission", "_text"];


if (server getVariable ["lockTransfer",false]) exitWith {
{
if (_x distance caja < 20) then {
[petros,"hint","Currently unloading another ammobox. Please wait a few seconds."] remoteExec ["commsMP",_x];
};
} forEach playableUnits;
};

[cursorobject,true] call vaciar;
cursorobject call jn_fnc_garage_garageVehicle;

3 comments on commit b2af291

@IrLED
Copy link
Contributor

@IrLED IrLED commented on b2af291 Nov 25, 2017

Choose a reason for hiding this comment

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

@StefArma
Copy link
Member Author

Choose a reason for hiding this comment

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

Is the problem into \municion\vaciar.sqf ? there are 2 check for distance 20m from caja(Arsenal) but i tought it was about the hint.

Anyway i can just revert this commit untill it's bulletproof

@IrLED
Copy link
Contributor

@IrLED IrLED commented on b2af291 Nov 25, 2017

Choose a reason for hiding this comment

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

I think it's better to revert it.
The unconditional deletion (in your case) happens here https://github.com/A3Antistasi/antistasiofficial/blob/master/AntistasiOfficial.Altis/Municion/vaciar.sqf#L50

Please sign in to comment.