velocity
Jump to navigation
Jump to search
velocity vehicle
Operand types:
vehicle: Object
Type of returned value:
Compatibility:
Added in version 1.80
Description:
Return velocity (speed vector) of vehicle as array [x, z, y].
Example:
vector = velocity jeep
Advanced:
_vehicle setVelocity [(velocity _vehicle select 0)+(sin _dir*_speed),(velocity _vehicle select 1)+(cos _dir*_speed),(velocity _vehicle select 2)]