reload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
|p21= unit: [[Object]] - person
|p21= unit: [[Object]] - person
|p22= muzzle (Optional): [[String]] - muzzle name or "" for current muzzle. Default: [[currentMuzzle]]
|p22= muzzle (Optional): [[String]] - muzzle name or "" for current muzzle. Default: [[currentMuzzle]]
|p23= magazine (Optional): [[String]] - magazine name or "" for current mmagazine. Default: [[currentMagazine]]
|p23= magazine (Optional): [[String]] - magazine name or "" for current magazine. Default: given muzzle magazine


|r2= [[Boolean]] - [[true]] on success
|r2= [[Boolean]] - [[true]] on success

Revision as of 20:12, 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 magazine. Default: given muzzle magazine
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