Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.24

Description

Description:Sets the vehicle thrust. The vehicle needs to have the controller enabled, using setManualControlled.

Syntax

Syntax:vehicle setThrustWanted factor
Parameters:
  • vehicle : Object - Controlled vehicle.
  • factor: Number - Thrust factor.
Return Value:Nothing -

Examples

Examples:
Set car to full speed:
car setThrustWanted 1.0

Script that uses setThrustWanted to move a vehicle: thrustMove.zip

Additional Information

See also: setThrustLWanted, setThrustRWanted, setTurnWanted, setManualControlled, setVelocity
Multiplayer:
Problems:

Notes