laserTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:ArmA 2 OA: New Scripting Commands List" to "[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List")
(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 (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. |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=


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


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


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


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


| [[cursorTarget]] |SEEALSO=
| [[cursorTarget]], [[setMissileTarget]] |SEEALSO=
 
}}
}}
<dl class="command_description">
<dd class="notedate">Posted on December 15, 2010 - 11:14 (UTC)</dd>
<dt class="note">[[User:Tom 48 97|tom_48_97]]</dt>
<dd class="note">
Need to be try with a soldier and laser designator
</dd>
</dl>
<dl class="command_description">
<dd class="notedate">Posted on December 19, 2010 - 06:10 (UTC)</dd>
<dt class="note">[[User:DarkWanderer|DarkWanderer]]</dt>
<dd class="note">
Works with either infantry or vehicles. Returns [[objNull]] if no target is present
</dd>
</dl>


<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}}}}]]
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Revision as of 19:30, 24 September 2019

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

Bottom Section