Difference between revisions of "velocity"

From Bohemia Interactive Community
Jump to navigation Jump to search
 
Line 1: Line 1:
 +
back to [[Scripting_Reference#V|COMREF]]
 +
 
<h2 style="color:#000066">'''velocity ''vehicle'''''</h2>
 
<h2 style="color:#000066">'''velocity ''vehicle'''''</h2>
 +
  
 
'''Operand types:'''
 
'''Operand types:'''
  
vehicle: [[Object]]
+
'''vehicle:''' [[Object]]
  
 
'''Type of returned value:'''
 
'''Type of returned value:'''
Line 12: Line 15:
  
 
Return velocity (speed vector) of vehicle as array '''[x, z, y]'''.
 
Return velocity (speed vector) of vehicle as array '''[x, z, y]'''.
 +
  
 
'''Example:'''
 
'''Example:'''
  
? '''velocity''' carOne > 50 : hint "Slow down, you are exceeding the speed limit."
+
? '''velocity''' carOne > 50 : [[hint]] "Slow down, you are exceeding the speed limit."

Revision as of 16:06, 15 April 2006

back to COMREF

velocity vehicle


Operand types:

vehicle: Object

Type of returned value:

Array

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