Difference between revisions of "velocity"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
Line 1: Line 1:
 
[[Category:Scripting Commands|VELOCITY]]
 
[[Category:Scripting Commands|VELOCITY]]
[[Category:Scripting Commands OFP 1.97|VELOCITY]]
+
[[Category:Scripting Commands OFP 1.96|VELOCITY]]
 
[[Category:Scripting Commands ArmA|VELOCITY]]
 
[[Category:Scripting Commands ArmA|VELOCITY]]
  

Revision as of 20:49, 1 June 2006


velocity vehicle


Operand types:

vehicle: Object

Type of returned value:

Array

Compatibility:

Added in version 1.80

Description:

Return velocity (speed vector) of vehicle as array [x, z, y].


Example:

? velocity carOne > 50 : hint "Slow down, you are exceeding the speed limit."