setVehicleAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
'''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.
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
player '''setVehicleAmmo''' 0

Revision as of 21:38, 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