laserTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2oa |Game name=
| arma2oa


|1.51|Game version=
|1.51


|arg= global|Multiplayer Arguments=
|arg= global


|gr1= Weapons |GROUP1=
|gr1= Weapons


| Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device. |DESCRIPTION=
| Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device.


| [[laserTarget]] unitName |SYNTAX=
| [[laserTarget]] unitName


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


| [[Object]] - laser target or [[objNull]] if no laser target exists |RETURNVALUE=
| [[Object]] - laser target or [[objNull]] if no laser target exists


|x1= <code>[[private]] _target = [[laserTarget]] [[gunner]] heli;</code> |EXAMPLE1=
|x1= <code>[[private]] _target = [[laserTarget]] [[gunner]] heli;</code>


|x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]]; </code> |EXAMPLE2=
|x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]]; </code>


| [[cursorTarget]], [[setMissileTarget]] |SEEALSO=
| [[cursorTarget]], [[setMissileTarget]]
}}
}}



Revision as of 01:01, 18 January 2021

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:
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

Bottom Section