Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:17.3.0

Description

Description: Returns all FCS parameters that are overridden using setFCSParams for a given vehicle turret.

Syntax

Syntax: getFCSParams gunner
Parameters:
  • gunner: Object - Gunner in a turret.
Return Value: Array of arrays - [ [ String parameter1Name, Number parameter1Value ], ..., [ String parameterNName, Number parameterNValue ] ]. If wrong parameters are supplied, an empty array [] is returned.

Alternative Syntax

Syntax:getFCSParams [vehicle, turret]
Parameters:
  • vehicle: Object - Vehicle with a turret.
  • turret: Array - Turret path to examine.
Return Value:Array of arrays - [ [ String parameter1Name, Number parameter1Value ], ..., [ String parameterNName, Number parameterNValue ] ]. If wrong parameters are supplied, an empty array [] is returned.

Examples

Examples:
_fcsSolution = getFCSParams player  // Return FCS overridden parameters for player controlled turret
_fcsSolution = getFCSParams [tank1,[0]]  // Return FCS overridden parameters for tank1 turret with index [0]
example output: [["airFiction", 0.08], ["initSpeed", 500]]

Additional Information

See also: getFCSSolution, setFCSParams, turretLead, turretWeaponDirection, opticsOffset, turretOpticsDirection, getAirPressure, setAirPressure, setAirTemperature
Multiplayer: 
Problems: 

Notes