laserTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma2oa * +\| *1.([0-9]{2}) * *\|([^g]|g[^a])" to "| arma2oa |1.$1 |game2= tkoh |version2= 1.00 |game3= arma3 |version3= 0.50 |$2")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 16: Line 16:
| Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device.
| Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device.


| [[laserTarget]] unitName
|s1=  [[laserTarget]] unitName


|p1= unitName: [[Object]]
|p1= unitName: [[Object]]

Revision as of 00:12, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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:
cursorTargetsetMissileTarget

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