reload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add more games)
No edit summary
Line 25: Line 25:


|r1= [[Nothing]]
|r1= [[Nothing]]
|s2= unit [[reload]] [muzzle, magazine]
|s2since= Arma3 2.08
|p21= unit: [[Object]] - person
|p22= muzzle (Optional): [[String]] - muzzle name or "" for current muzzle. Default: [[currentMuzzle]]
|p23= magazine (Optional): [[String]] - magazine name or "" for current mmagazine. Default: [[currentMagazine]]
|r2= [[Boolean]] - [[true]] on success


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

Revision as of 21:07, 1 January 2022

Hover & click on the images for description

Description

Description:
Reload all weapons.
Groups:
Weapons

Syntax

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

Alternative Syntax

Syntax:
unit reload [muzzle, magazine]
Parameters:
unit: Object - person
muzzle (Optional): String - muzzle name or "" for current muzzle. Default: currentMuzzle
magazine (Optional): String - magazine name or "" for current mmagazine. Default: currentMagazine
Return Value:
Boolean - true on success

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