Page MenuHomeFeedback Tracker

Aircraft Landing Gear Bool
New, WishlistPublic

Description

It would be nice to have a landing gear counterpart to compliment the below commands:

isEngineOn
isCollisionLightOn
isLightOn

Would be nice also have:

isLandingGearOn

Why:

When using setPos on an aircraft, say a plane, if the landing gear is not down then that will affect whether I want put it on the runway or leave it as is.

For respawn scripts, I also use setPos to reset the vehicle rather than delete it and spawn a new one. Often when helicopters are abandoned in the field, they are with landing gear retracted. I want to know if they are retracted before resetting the vehicle, sort of like this:

if (isEngineOn _v) then {_v engineOn FALSE;};
if !(isLandingGearOn <vehicle>) then {<vehicle> landingGearOn TRUE;};
<vehicle> setPos spawnPos;

If I don't re-deploy the landing gear on reset, then it spawns with its belly on the ground is not good aesthetics.

Details

Legacy ID
1015365192
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request

Event Timeline

MDCCLXXVI edited Additional Information. (Show Details)
MDCCLXXVI set Category to Feature Request.
MDCCLXXVI set Reproducibility to Always.
MDCCLXXVI set Severity to None.
MDCCLXXVI set Resolution to Open.
MDCCLXXVI set Legacy ID to 1015365192.May 7 2016, 7:59 PM
MDCCLXXVI added a subscriber: MDCCLXXVI.

Until a command like this gets implemented, we have to resort to silly work-arounds like this:

_randomPlayer = playableUnits select (floor (random (count playableUnits)));
_ownerNumber = owner _randomPlayer;
QS_vehicleRequestGearDown = <vehicle object>; _ownerNumber publicVariableClient "QS_vehicleRequestGearDown";
[{player action ["LandGear",QS_vehicleRequestGearDown]; QS_vehicleRequestGearDown = nil;},"BIS_fnc_call",_ownerNumber,FALSE] spawn BIS_fnc_MP;
QS_vehicleRequestGearDown = nil;

Just to deploy the landing gear on a Server-local air vehicle.