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 magazine. Default: given muzzle magazine. If given muzzle is [[currentMuzzle]] then [[currentMagazine]]
|p23= magazine (Optional): [[String]] - magazine name or "" for given muzzle magazine. Default: given muzzle magazine. If given muzzle is [[currentMuzzle]] then [[currentMagazine]]


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

Revision as of 20:13, 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 given muzzle magazine. Default: given muzzle magazine. If given muzzle is currentMuzzle then 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