mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Inherit ACE_Actions - addToInventory
This commit is contained in:
parent
993ee2d498
commit
3f3ffe117e
@ -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));
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user