laserTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - "|= |x2=" to "|Example1= |x2=")
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_target <nowiki>=</nowiki> '''laserTarget''' gunner heli; </code> |=  
|x1= <code>_target <nowiki>=</nowiki> '''laserTarget''' gunner heli; </code> |Example1=
 
|x2= <code>_designatedPos <nowiki>=</nowiki> [[position]] '''laserTarget''' player; </code> |=  
|x2= <code>_designatedPos <nowiki>=</nowiki> [[position]] '''laserTarget''' player; </code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 11:48, 3 September 2019

Hover & click on the images for description

Description

Description:
Returns laser target object created by given unit (gunner in vehicle or on foot) when using "Laserdesignator" or another laser targeting device. Laser target object is global and can be retrieved from any PC.
Groups:
Uncategorised

Syntax

Syntax:
laserTarget unitName
Parameters:
unitName: Object
Return Value:
Object

Examples

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

Additional Information

See also:
cursorTarget

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
Posted on December 15, 2010 - 11:14 (UTC)
tom_48_97
Need to be try with a soldier and laser designator
Posted on December 19, 2010 - 06:10 (UTC)
DarkWanderer
Works with either infantry or vehicles. Returns objNull if no target is present

Bottom Section