laserTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|game1= arma2oa | |game1= arma2oa | ||
|version1= 1. | |version1= 1.50 | ||
|game2= tkoh | |game2= tkoh | ||
Line 14: | Line 14: | ||
|gr1= Weapons | |gr1= Weapons | ||
|descr= Returns laser target object created by given unit (vehicle or soldier) when using a laser targeting device. | |descr= Returns the laser target object created by given unit (vehicle or soldier) when using a laser targeting device. The main syntax targets the primary gunner turret. | ||
|s1= [[laserTarget]] | |s1= [[laserTarget]] entity | ||
|p1= | |p1= entity: [[Object]] - unit or vehicle | ||
|r1=[[Object]] - laser target or [[objNull]] if no laser target exists | |r1= [[Object]] - laser target or [[objNull]] if no laser target exists | ||
| | |s2= vehicle [[laserTarget]] turret | ||
| | |s2since= arma3 2.12 | ||
|seealso= [[cursorTarget]] | |p21= vehicle: [[Object]] - transport | ||
|p22= turret: [[Array]] format [[Turret Path]] | |||
|r2= [[Object]] - laser target or [[objNull]] if no laser target exists | |||
|x1= <sqf>private _target = laserTarget gunner heli;</sqf> | |||
|x2= <sqf>private _designatedPos = getPosATL laserTarget player;</sqf> | |||
|seealso= [[isLaserOn]] [[cursorTarget]] [[setMissileTarget]] | |||
}} | }} |
Latest revision as of 21:11, 29 August 2022
Description
- Description:
- Returns the laser target object created by given unit (vehicle or soldier) when using a laser targeting device. The main syntax targets the primary gunner turret.
- Groups:
- Weapons
Syntax
- Syntax:
- laserTarget entity
- Parameters:
- entity: Object - unit or vehicle
- Return Value:
- Object - laser target or objNull if no laser target exists
Alternative Syntax
- Syntax:
- vehicle laserTarget turret
- Parameters:
- vehicle: Object - transport
- turret: Array format Turret Path
- Return Value:
- Object - laser target or objNull if no laser target exists
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- isLaserOn 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