needReload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:
| [[Number]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1=<pre>_seriousness= needReload _vehicle</pre>
|x1=<code>_seriousness = '''needReload''' _vehicle;</code>
|x2=<code>[[if]] ([[needReload]] [[player]] == 1) [[then]] {'''reload''' [[player]]};</code>


| |= See also
| [[reload]], [[reloadEnabled]] |= See also


}}
}}

Revision as of 22:09, 11 April 2014

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Return how much vehicle wants to reload its weapons.
Groups:
Uncategorised

Syntax

Syntax:
Number = needReload vehicle
Parameters:
vehicle: Object
Return Value:
Number

Examples

Example 1:
_seriousness = needReload _vehicle;
Example 2:
if (needReload player == 1) then {reload player};

Additional Information

See also:
reloadreloadEnabled

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