currentZeroing: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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


|x1= <code>_zeroing = [[currentZeroing]] [[player]];</code>
|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>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[setWeaponZeroing]]
{{GameCategory|arma2|Scripting Commands}}
}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Revision as of 15:02, 10 February 2021

Hover & click on the images for description

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