SetVehicleLinearVelocity: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 18: Line 18:
SetVehicleLinearVelocity(vehicleId, 100.0, 0.0, 0.0, false)
SetVehicleLinearVelocity(vehicleId, 100.0, 0.0, 0.0, false)
-- Push the vehicle towards 100.0 units in X axis
-- Push the vehicle towards 100.0 units in X axis
<syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{VehicleFunctions}}
{{VehicleFunctions}}

Revision as of 19:29, 31 December 2019

SetVehicleLinearVelocity

Type: Function
Context: Server
Introduced: v1.0

Description

Set the vehicle's linear velocity.

Syntax

SetVehicleLinearVelocity(vehicle, x, y, z [, reset])

Parameters

  • vehicle
    The vehicle identifier.
  • x
    The X axis velocity
  • y
    The Y axis velocity
  • z
    The Z axis velocity
  • reset (optional)
    Boolean __EDIT_ME__

Return Value

  • This function returns true.

Example

SetVehicleLinearVelocity(vehicleId, 100.0, 0.0, 0.0, false)
-- Push the vehicle towards 100.0 units in X axis

See also