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



Introduced in

Version:17.3.0

Description

Description:

Allows the overriding of FCS parameters for the given vehicle turret, so that the turret is forced to compensate for specific FCS settings. The supported parameter names are:

  • "airFriction"
  • "initSpeed"
  • "gravityCoef"
  • "wind"

Values set can be verified using getFCSParams. If provided with an empty array, the command clears all the overridden FCS parameters.

Syntax

Syntax:gunner setFCSParams [["param1Name", 10], ["param2Name", 20], ..., ["paramNName", paramNValue]]
Parameters:
  • gunner: Object - Gunner in a turret.
  • paramNName: String - Name of the overridden parameter.
  • paramNValue: Number or Array - Value of parameter to be overridden. Usually a number, with the exception of wind, which requires a 3D vector array. If nil is provided, the selected override is disabled (optional, default: nil).
Return Value:Nothing

Alternative Syntax

Syntax:[vehicle, turret] setFCSParams [["param1Name", 10], ["param2Name", 20], ..., ["paramNName", paramNValue]]
Parameters:
  • vehicle: Object - Vehicle with a turret.
  • turret: Array - Turret path to examine.
  • paramNName: String - Name of the overridden parameter.
  • paramNValue: Number or Array - Value of parameter to be overridden. Usually a number, with the exception of wind, which requires a 3D vector array. If nil is provided, the selected override is disabled (optional, default: nil).
Return Value:Nothing

Examples

Examples:
player setFCSParams [["initSpeed", 500],["wind",[0,0,0]]] // Enforce FCS computing as if a round with an initial velocity of 500 m/s is fired and no wind
[tank1,[0]] setFCSParams [["initSpeed", 400], ["airFriction", -0.01]]  // Enforce FCS computing as if with an initial velocity of 400 m/s is fired, having an air friction of -0.01
player setFCSParams [["initSpeed", nil]]  // Clear initial speed override by providing nil value in the overriding parameter
[tank1,[0]] setFCSParams [["airFriction"]]  // Clear air friction override by providing no value in the overriding parameter
[tank1,[0]] setFCSParams []  // Clear all the FCS overrides on tank1 first turret

Additional Information

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

Notes