Made picking up explosives use the new AddToInventory function from common.

This commit is contained in:
Garth L-H de Wet 2015-04-02 21:44:33 +02:00
parent 1e8a8e79fe
commit 703bc24657

View File

@ -112,7 +112,7 @@ class CfgVehicles {
displayName = "$STR_ACE_Explosives_Pickup";
distance = 4;
condition = "true";
statement = QUOTE(_player addMagazine (_target getVariable QUOTE(QGVAR(class)));deleteVehicle _target;);
statement = QUOTE([ARR_2(_player,_target getVariable QUOTE(QGVAR(class)))] call EFUNC(common,addToInventory);deleteVehicle _target;);
showDisabled = 0;
exceptions[] = {};
priority = 5;