laserTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma2oa | | arma2oa | ||
|1.51 | |1.51 | ||
|arg= global | |arg= global | ||
|gr1= Weapons | |gr1= Weapons | ||
| 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 | | [[laserTarget]] unitName | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] | ||
| [[Object]] - laser target or [[objNull]] if no laser target exists | | [[Object]] - laser target or [[objNull]] if no laser target exists | ||
|x1= <code>[[private]] _target = [[laserTarget]] [[gunner]] heli;</code> | |x1= <code>[[private]] _target = [[laserTarget]] [[gunner]] heli;</code> | ||
|x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]]; </code> | |x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]]; </code> | ||
| [[cursorTarget]], [[setMissileTarget]] | | [[cursorTarget]], [[setMissileTarget]] | ||
}} | }} | ||
Revision as of 01:01, 18 January 2021
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