setVehicleAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|SETVEHICLEAMMO]]
[[Category:Scripting Commands ArmA|SETVEHICLEAMMO]]


<new command not populated>


<h2 style="color:#000066">'''''object'' setVehicleAmmo ''value'''''</h2>


<h2 style="color:#000066">''''' setVehicleAmmo'''''</h2>


'''Operand types:'''


'''Operand types:'''
'''object:''' [[Object]]
 
'''value:''' [[Number]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Nothing]]


'''Compatibility:'''
'''Compatibility:'''
Version 2.32 required.


'''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.


'''Example:'''
'''Example:'''
player '''setVehicleAmmo''' 0

Revision as of 17:35, 4 July 2006


object setVehicleAmmo value


Operand types:

object: Object

value: Number

Type of returned value:

Nothing

Compatibility:

Version 2.32 required.

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.

Example:

player setVehicleAmmo 0