Inherit ACE_Actions - addToInventory

This commit is contained in:
PabstMirror 2015-06-05 03:32:55 -05:00
parent 993ee2d498
commit 3f3ffe117e
3 changed files with 13 additions and 17 deletions

View File

@ -9,11 +9,3 @@ class Extended_PostInit_EventHandlers {
init = QUOTE( call COMPILE_FILE(XEH_postInit) );
};
};
class Extended_Init_EventHandlers {
class ACE_SpottingScopeObject {
class ADDON {
init = QUOTE(_this call DEFUNC(dragging,initObject));
};
};
};

View File

@ -16,7 +16,7 @@ class CfgVehicles {
};
};
};
class Item_Base_F;
class ACE_Item_SpottingScope: Item_Base_F {
author[] = {"Rocko", "Scubaman3D"};
@ -31,22 +31,28 @@ class CfgVehicles {
};
};
};
class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems {
MACRO_ADDITEM(ACE_Item_SpottingScope,2);
};
};
class LandVehicle;
class StaticWeapon: LandVehicle {
class Turrets;
class ACE_Actions {
class ACE_MainActions {};
};
};
class StaticATWeapon: StaticWeapon {
class Turrets: Turrets {
class MainTurret;
};
class ACE_Actions: ACE_Actions{
class ACE_MainActions: ACE_MainActions {};
};
};
class ACE_SpottingScopeObject: StaticATWeapon {
XEH_ENABLED;
@ -107,11 +113,9 @@ class CfgVehicles {
EGVAR(dragging,canDrag) = 1;
EGVAR(dragging,dragPosition[]) = {0,1,0};
EGVAR(dragging,dragDirection) = 0;
class ACE_Actions {
class ACE_MainActions {
class ACE_Actions: ACE_Actions{
class ACE_MainActions: ACE_MainActions {
selection = "osaveze";
distance = 5;
condition = "true";
class ACE_Pickup {
selection = "";
displayName = CSTRING(PickUp);

View File

@ -18,13 +18,13 @@
PARAMS_2(_spottingScope,_unit);
if ((_unit call CBA_fnc_getUnitAnim) select 0 == "stand") then {
_unit playMove "AmovPercMstpSrasWrflDnon_diary";
_unit playMove "AmovPercMstpSrasWrflDnon_diary";
};
[{
PARAMS_2(_spottingScope,_unit);
_unit addItem "ACE_SpottingScope";
[_unit, "ACE_SpottingScope"] call EFUNC(common,addToInventory);
deleteVehicle _spottingScope;
}, [_spottingScope, _unit], 1, 0]call EFUNC(common,waitAndExecute);