laserTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 9: | Line 8: | ||
|gr1= Weapons |GROUP1= | |gr1= Weapons |GROUP1= | ||
| 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. |DESCRIPTION= | ||
| [[laserTarget]] unitName |SYNTAX= | | [[laserTarget]] unitName |SYNTAX= | ||
Line 19: | Line 16: | ||
| [[Object]] - laser target or [[objNull]] if no laser target exists |RETURNVALUE= | | [[Object]] - laser target or [[objNull]] if no laser target exists |RETURNVALUE= | ||
|x1= <code>[[private]] _target = [[laserTarget]] [[gunner]] heli;</code> |EXAMPLE1= | |x1= <code>[[private]] _target = [[laserTarget]] [[gunner]] heli;</code> |EXAMPLE1= | ||
|x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]]; </code> |EXAMPLE2= | |x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]]; </code> |EXAMPLE2= | ||
| [[cursorTarget]], [[setMissileTarget]] |SEEALSO= | | [[cursorTarget]], [[setMissileTarget]] |SEEALSO= |
Revision as of 01:39, 17 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