reload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 3: Line 3:


{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 10: Line 9:


|gr1= Weapons |GROUP1=
|gr1= Weapons |GROUP1=
____________________________________________________________________________________________


| Reload all weapons |DESCRIPTION=
| Reload all weapons |DESCRIPTION=
____________________________________________________________________________________________


| '''reload''' unitName |SYNTAX=
| '''reload''' unitName |SYNTAX=
Line 23: Line 20:


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


| [[reloadEnabled]], [[needReload]], [[enableReload]], [[setWeaponReloadingTime]] |SEEALSO=
| [[reloadEnabled]], [[needReload]], [[enableReload]], [[setWeaponReloadingTime]] |SEEALSO=

Revision as of 02:15, 17 January 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

Notes

Bottom Section