laserTarget

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Returns the laser target object created by given unit (vehicle or soldier) when using a laser targeting device. The main syntax targets the primary gunner turret.
Groups:
Weapons

Syntax

Syntax:
laserTarget entity
Parameters:
entity: Object - unit or vehicle
Return Value:
Object - laser target or objNull if no laser target exists

Alternative Syntax

Syntax:
vehicle laserTarget turret
Parameters:
vehicle: Object - transport
turret: Array format Turret Path
Return Value:
Object - laser target or objNull if no laser target exists

Examples

Example 1:
private _target = laserTarget gunner heli;
Example 2:
private _designatedPos = getPosATL laserTarget player;

Additional Information

See also:
isLaserOn cursorTarget setMissileTarget

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note