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



Introduced in

Version:2.00

Description

Description:

Causes a vehicle to fire the given weapon at specified target.

Note: This command does not cause the vehicle to actually aim at the target, but to simply fire the weapon with a lock on the target. This is intended to be used with guided missiles or bombs.

Syntax

Syntax:vehicle fireAtTarget [target, weapon]
Parameters:
  • vehicle : Object - Vehicle to fire from.
  • target: Object - Target to fire at
  • weapon: String - Weapon muzzle name (optional).
Return Value:Boolean - Returns true, if the vehicle fires at the target (even if the firing might be slightly delayed due to reloading). If false is returned, then the vehicle is unable to comply.

Examples

Examples:
_handle = this fireAtTarget [groundtarget1,HellfireLauncher];

Additional Information

See also: fire, commandSuppressiveFire, laserTarget
Multiplayer:
Problems:

Notes