currentZeroing: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
(added alt syntax) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|1.51 | |version1= 1.51 | ||
|game2= arma3 | |||
|version2= 1.00 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|gr1= Weapons | |gr1= Weapons | ||
| Returns zeroing of unit's weapon. | |descr= Returns zeroing of unit's weapon. | ||
| [[currentZeroing]] gunner | |s1= [[currentZeroing]] gunner | ||
|p1= gunner: [[Object]] | |p1= gunner: [[Object]] | ||
| [[Number]] | |r1= [[Number]] | ||
|s2 = object [[currentZeroing]] [weaponClass, muzzleClass] {{Since|arma3|2.03}} | |||
|p21= object: [[Object]] - Unit or vehicle | |||
| | |p22= weaponClass [[String]] - Class name of weapon | ||
|p23= muzzleClass [[String]] - (Optional, default currently active muzzle or first that is found) - Class name of the muzzle | |||
|r2= [[Array]] in format: | |||
* 0: [[Number]] - Distance | |||
* 1: [[Number]] - Index | |||
|x1= <code>[[private]] _zeroing = [[currentZeroing]] [[player]];</code> | |||
[[ | |seealso= [[setWeaponZeroing]] | ||
}} | |||
Revision as of 15:02, 10 February 2021
Description
- Description:
- Returns zeroing of unit's weapon.
- Groups:
- Weapons
Syntax
- Syntax:
- currentZeroing gunner
- Parameters:
- gunner: Object
- Return Value:
- Number
Alternative Syntax
- Syntax:
- object currentZeroing [weaponClass, muzzleClass] Template:Since
- Parameters:
- object: Object - Unit or vehicle
- weaponClass String - Class name of weapon
- muzzleClass String - (Optional, default currently active muzzle or first that is found) - Class name of the muzzle
- Return Value:
- Array in format:
Examples
- Example 1:
private _zeroing = currentZeroing player;
Additional Information
- See also:
- setWeaponZeroing
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