laserTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:ArmA 2 OA: New Scripting Commands List" to "[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List") |
Lou Montana (talk | contribs) (Fix Category:Pages using duplicate arguments in template calls, description and SeeAlso. Locality is already explained with aG) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns laser target object created by given unit ( | | Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[laserTarget]] unitName |SYNTAX= | ||
|p1= unitName: [[Object]] |= | |p1= unitName: [[Object]] |PARAMETER1= | ||
| [[Object]] |RETURNVALUE= | | [[Object]] - [[objNull]] if no laser target exists |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_target | |x1= <code>[[private]] _target = [[laserTarget]] gunner heli;</code> |EXAMPLE1= | ||
|x2= <code>_designatedPos | |x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] player; </code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[cursorTarget]] |SEEALSO= | | [[cursorTarget]], [[setMissileTarget]] |SEEALSO= | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
Line 50: | Line 33: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 19:30, 24 September 2019
Description
- Description:
- Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device.
- Groups:
- Uncategorised
Syntax
- Syntax:
- laserTarget unitName
- Parameters:
- unitName: Object
- Return Value:
- Object - 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