setVehicleAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETVEHICLEAMMO]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETVEHICLEAMMO]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETVEHICLEAMMO]]


| arma |= Game name


<h2 style="color:#000066">'''''object'' setVehicleAmmo ''value'''''</h2>
|2.32|= Game version
____________________________________________________________________________________________


| Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has. The value ranges from 0 to 1. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| object '''setVehicleAmmo''' value |= Syntax


'''object:''' [[Object]]
|p1= object: [[Object]] |= Parameter 1


'''value:''' [[Number]]
|p2= value: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>player setVehicleAmmo 0</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.32 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETVEHICLEAMMO]]
The value ranges from 0 to 1.
[[Category:Scripting Commands OFP Elite |SETVEHICLEAMMO]]
 
[[Category:Scripting Commands ArmA|SETVEHICLEAMMO]]
 
'''Example:'''
 
player '''setVehicleAmmo''' 0

Revision as of 23:35, 1 August 2006

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

Description

Description:
Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has. The value ranges from 0 to 1.
Groups:
Uncategorised

Syntax

Syntax:
object setVehicleAmmo value
Parameters:
object: Object
value: Number
Return Value:
Nothing

Examples

Example 1:
player setVehicleAmmo 0

Additional Information

See also:
See also needed

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