reload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Some wiki formatting)
Line 1: Line 1:
[[Category:Scripting Commands|RELOAD]]
{{GameCategory|arma1|Scripting Commands}}
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1


|1.00
|version1= 1.00


|gr1= Weapons
|gr1= Weapons


| Reload all weapons
|descr= Reload all weapons.


| '''reload''' unitName
|s1= '''reload''' unitName


|p1= unitName: [[Object]]
|p1= unitName: [[Object]]


| [[Nothing]]
|r1= [[Nothing]]


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


| [[reloadEnabled]], [[needReload]], [[enableReload]], [[setWeaponReloadingTime]]
|seealso= [[reloadEnabled]], [[needReload]], [[enableReload]], [[setWeaponReloadingTime]]
}}
}}



Revision as of 01:10, 1 February 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