setVelocity

From Bohemia Interactive Community
Revision as of 14:01, 17 April 2006 by Planck (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

back to COMREF

vehicle setVelocity [x, z, y]


Operand types:

vehicle: Object

[x, z, y]: Array

Type of returned value:

Nothing

Description:

Set velocity (speed vector) of vehicle.

Note: This command will not work for man-type units (soldiers, officers, etc) if they are touching the ground.


Example:

truck1 setvelocity [20, 0, 0]