isLaserOn: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix syntaxhighlight usage) |
BrettMayson (talk | contribs) mNo edit summary |
||
Line 23: | Line 23: | ||
|p21= vehicle: [[Object]] - transport | |p21= vehicle: [[Object]] - transport | ||
|p22= turret: [[Array]] - | |p22= turret: [[Array]] format [[Turret Path]] - [-1] for driver turret | ||
|r2= [[Boolean]] - [[true]] when laser is on, [[false]] otherwise | |r2= [[Boolean]] - [[true]] when laser is on, [[false]] otherwise |
Revision as of 13:22, 15 June 2024
Description
- Description:
- Returns true if the vehicle has its laser turned on. Not to be confused with isIRLaserOn which is for units. Main syntax is for primary gunner turret.
- Groups:
- Weapons
Syntax
- Syntax:
- isLaserOn entity
- Parameters:
- entity: Object - unit or vehicle
- Return Value:
- Boolean - true when laser is on, false otherwise
Alternative Syntax
- Syntax:
- vehicle isLaserOn turret
- Parameters:
- vehicle: Object - transport
- turret: Array format Turret Path - [-1] for driver turret
- Return Value:
- Boolean - true when laser is on, false otherwise
Examples
- Example 1:
Additional Information
- See also:
- laserTarget enableIRLasers isIRLaserOn
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
- Posted on Dec 27, 2022 - 08:27 (UTC)
- Does not mean there is actual laser object present. Returns laser designator weapon's toggle state. In other words isLaserOn can return true while laserTarget returns <NULL-object>, for example in case laser was turned on and unit left the vehicle, there would be no laser target entity anymore, while designator is still turned on.