needReload: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=") |
||
Line 13: | Line 13: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
| [[Number]] Range: 0-1, 0: full mag, 1: empty mag | |r1= [[Number]] Range: 0-1, 0: full mag, 1: empty mag | ||
|x1=<code>_seriousness = '''needReload''' _vehicle;</code> | |x1=<code>_seriousness = '''needReload''' _vehicle;</code> | ||
|x2=<code>[[if]] ([[needReload]] [[player]] == 1) [[then]] {'''reload''' [[player]]};</code> | |x2=<code>[[if]] ([[needReload]] [[player]] == 1) [[then]] {'''reload''' [[player]]};</code> |
Revision as of 13:22, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- Weapons
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicle: Object
- Return Value:
- Number Range: 0-1, 0: full mag, 1: empty mag
Examples
- Example 1:
_seriousness = needReload _vehicle;
- Example 2:
if (needReload player == 1) then {reload player};
Additional Information
- See also:
- reloadreloadEnabledenableReload
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