reload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
m (Add more games)
Line 3: Line 3:
|game1= arma1
|game1= arma1
|version1= 1.00
|version1= 1.00
|game2= arma2
|version2= 1.00
|game3= arma2oa
|version3= 1.50
|game4= tkoh
|version4= 1.00
|game5= arma3
|version5= 0.50


|gr1= Weapons
|gr1= Weapons
Line 8: Line 20:
|descr= Reload all weapons.
|descr= Reload all weapons.


|s1= '''reload''' unitName
|s1= [[reload]] unitName


|p1= unitName: [[Object]]
|p1= unitName: [[Object]]
Line 14: Line 26:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[if]] ([[needReload]] [[player]] == 1) [[then]] { '''reload''' [[player]] };</code>
|x1= <code>[[if]] ([[needReload]] [[player]] == 1) [[then]] { [[reload]] [[player]] };</code>


|seealso= [[reloadEnabled]], [[needReload]], [[enableReload]], [[setWeaponReloadingTime]]
|seealso= [[reloadEnabled]], [[needReload]], [[enableReload]], [[setWeaponReloadingTime]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 22:17, 16 June 2021

Hover & click on the images for description

Description

Description:
Reload all weapons.
Groups:
Weapons

Syntax

Syntax:
reload unitName
Parameters:
unitName: Object
Return Value:
Nothing

Examples

Example 1:
if (needReload player == 1) then { reload player };

Additional Information

See also:
reloadEnabledneedReloadenableReloadsetWeaponReloadingTime

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