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


Introduced in

Version:1.45

Description

Description:

Returns the current status of laser rangefinder (LRF), which corresponds to the in-game status color:

  • 0 - Lasing not available (unit or vehicle position not equipped with LRF).
  • 1 - Red: Not lased (distance cannot be determined, e.g. water, air)
  • 2 - Yellow: Lasing in progress (distance is being determined)
  • 3 - Green: Lased (distance has been determined and displayed)
  • 4 - FCS errorl: The distance has been determined but the gun cannot fire, since either the gun is missing, or the destination is outside of the weapon system range (V3.7.1+).


For more information, see:

Syntax

Syntax:vehicle lasingStatus gunner
Parameters:
  • vehicle: Object - The vehicle.
  • gunner: Object - The gunner of the vehicle.
Return Value:Number - LRF status (see description of return values).

Alternative Syntax

Syntax:vehicle lasingStatus path (V3.7.1+)
Parameters:
  • vehicle: Object - The vehicle.
  • path: Array - The path to the turret.
Return Value:Number - LRF status (see description of return values).

Examples

Examples:
_status = someTank lasingStatus (gunner someTank)
_status = vehicle player lasingStatus [0,1]

Additional Information

See also: LaserRange
Multiplayer:LRF Status is returned locally for the unit performing the lasing
Problems:

Notes