Difference between revisions of "setVehicleAmmo"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
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

Introduced with Armed Assault version 2.32
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
2.32

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.

Syntax

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

Examples

Example 1:
player setVehicleAmmo 0

Additional Information

Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section