laserTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) |
||
Line 26: | Line 26: | ||
|x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]];</code> | |x2= <code>[[private]] _designatedPos = [[getPosATL]] [[laserTarget]] [[player]];</code> | ||
|seealso= [[cursorTarget]] | |seealso= [[cursorTarget]] [[setMissileTarget]] | ||
}} | }} |
Revision as of 16:36, 20 January 2022
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:
- cursorTarget setMissileTarget
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