getAmmoCargo: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | |game1= arma3 | ||
|version1= 0.56 | |||
| | |arg= global | ||
| | |gr1= Vehicle Inventory | ||
| | |descr= Returns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle. | ||
| | |s1= [[getAmmoCargo]] vehicle | ||
| | |p1= vehicle: [[Object]] | ||
|r1= [[Number]] - ammo cargo value between 0 (empty, [[alive|destroyed]] or [[isNull|null]] [[Object]]) and 1 (full), -1 if ammo cargo is not supported<br> | |||
before {{GVI|arma3|1.96|size= 0.75}} -[[finite|inf]] was be returned if ''vehicle'' did not support ammo cargo<br> | |||
before {{GVI|arma3|1.94|size= 0.75}} [[Nothing]] was be returned if ''vehicle'' was not [[alive]] | |||
|x1= < | |x1= <sqf>value = getAmmoCargo myVehicleName;</sqf> | ||
|seealso= [[setAmmoCargo]] [[getFuelCargo]] [[getRepairCargo]] | |||
| [[setAmmoCargo]] | |||
}} | }} | ||
Latest revision as of 02:20, 18 February 2025
Description
- Description:
- Returns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle.
- Groups:
- Vehicle Inventory
Syntax
- Syntax:
- getAmmoCargo vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Number - ammo cargo value between 0 (empty, destroyed or null Object) and 1 (full), -1 if ammo cargo is not supported
before1.96 -inf was be returned if vehicle did not support ammo cargo
before1.94 Nothing was be returned if vehicle was not alive
Examples
- Example 1:
Additional Information
- See also:
- setAmmoCargo getFuelCargo getRepairCargo
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