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


Introduced in

Version:3.9.1

Description

Description: Forces an aircraft to initiate close air support. Currently limited to strafing runs. See fn vbs closeAirSupport for more options when applying the closeAirSupport command in a mission.

The aircraft needs to be equipped with the respective weapon and ammunition in order to attack. The distance at which the attack is initiated is based on the angle and aircraft altitude. If the aircraft had incomplete waypoints assigned to it before the fn vbs closeAirSupport function is called, it resumes waypoint navigation after it has pulled up out of the attack run.

Syntax

Syntax: vehicle closeAirSupport [type, [targetPos, angle, contactPt, pullupPt, weapon, magazine]]
Parameters:
  • vehicle: Vehicle - Aircraft which is to fire.
  • type: String - Type of CAS maneuvre. Currently limited to "strafe".
  • targetPos: Position-2 - Position of target area to fire at.
  • angle: Number - Angle of attack.
  • contactPt: Number - Distance from target in meters at which the aircraft begins firing.
  • pullupPt: Number - Distance from target in meters at which the aircraft stops firing and pulls up.
  • weapon: String - (Optional) Weapon to fire (if left out, the aircraft fires the first available bullet based weapon).
  • magazine: String - (Optional) Ammunition type to fire (if left out, the aircraft fires the loaded magazine for the chosen weapon).
Return Value: Nothing

Alternative Syntax

Syntax:vehicle closeAirSupport [type, [[startTgtPos, endTgtPos], angle, contactPt, pullupPt, weapon, magazine]] (V17.1+)
Parameters:
  • vehicle: Vehicle - Aircraft which is to fire.
  • type: String - Type of CAS maneuvre. Currently limited to "strafe".
  • startTgtPos: Position-2 - Start of the beaten zone.
  • endTgtPos: Position-2 - End of the beaten zone.
  • angle: Number - Angle of attack.
  • contactPt: Number - Distance from target in meters at which the aircraft begins firing.
  • pullupPt: Number - Distance from target in meters at which the aircraft stops firing and pulls up.
  • weapon: String - (Optional) Weapon to fire (if left out, the aircraft fires the first available bullet based weapon).
  • magazine: String - (Optional) Ammunition type to fire (if left out, the aircraft fires the loaded magazine for the chosen weapon).
Return Value:Nothing

Examples

Examples:
_myVehicle closeAirSupport ["strafe", [getPosASL2 _myTarget, -20, 1000, 500, "vbs2_HydraLauncher", "vbs2_mag_14rnd_Hydra_HE"]]

Additional Information

See also: fn vbs closeAirSupport
Multiplayer: 
Problems: 

Notes