Improve interaction position for air units. (#4285)

Fix #4233
This commit is contained in:
PabstMirror
2016-08-27 03:37:58 -05:00
committed by Glowbal
parent 64cf8aa95a
commit d448ea8916
5 changed files with 83 additions and 4 deletions

View File

@ -385,10 +385,11 @@ class CfgVehicles {
class Air;
class Helicopter: Air {
GVAR(bodyWidth) = 3;
class ACE_Actions {
class ACE_MainActions {
displayName = CSTRING(MainAction);
position = QUOTE(call DFUNC(getVehiclePos));
position = QUOTE([ARR_2(_target, EGVAR(interact_menu,cameraPosASL))] call DFUNC(getVehiclePosComplex));
selection = "";
distance = 4;
condition = "true";
@ -415,6 +416,7 @@ class CfgVehicles {
class ACE_Actions {
class ACE_MainActions {
displayName = CSTRING(MainAction);
position = QUOTE([ARR_2(_target, EGVAR(interact_menu,cameraPosASL))] call DFUNC(getVehiclePosComplex));
selection = "";
distance = 4;
condition = "true";
@ -437,6 +439,16 @@ class CfgVehicles {
};
};
class VTOL_Base_F;
class VTOL_01_base_F: VTOL_Base_F {
GVAR(bodyWidth) = 4;
GVAR(bodyLength) = 10;
};
class VTOL_02_base_F: VTOL_Base_F {
GVAR(bodyWidth) = 3;
GVAR(bodyLength) = 7;
};
class Ship;
class Ship_F: Ship {
class ACE_Actions {