laserTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
No edit summary
Line 26: Line 26:
|x2= <sqf>private _designatedPos = getPosATL laserTarget player;</sqf>
|x2= <sqf>private _designatedPos = getPosATL laserTarget player;</sqf>


|seealso= [[cursorTarget]] [[setMissileTarget]]
|seealso= [[isLaserOn]] [[cursorTarget]] [[setMissileTarget]]
}}
}}

Revision as of 18:14, 29 August 2022

Hover & click on the images for description

Description

Description:
Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device.
Groups:
Weapons

Syntax

Syntax:
laserTarget unitName
Parameters:
unitName: Object
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