Skip to content
lsl.devlsl.devLSL Dev

llSetVehicleType

function
Function syntax
llSetVehicleType(
  1. integer type// VEHICLE_TYPE_* constant to set. Values: VehicleType
);
Energy
10

Sets the vehicle physics preset type to one of the default vehicle types.

Sets the vehicle type to one of the default types.

How to use
llSetVehicleType(0);
FlagsDescription
VEHICLE_TYPE_NONE0Turns off vehicle support
VEHICLE_TYPE_SLED1Simple vehicle that bumps along the ground, and likes to move along its local x-axis
VEHICLE_TYPE_CAR2Vehicle that bounces along the ground but needs the motors to be driven from external controls or timer events
VEHICLE_TYPE_BOAT3Hovers over water with lots of friction and some angular deflection
VEHICLE_TYPE_AIRPLANE4Uses linear deflection for lift, no hover, and banking to turn
VEHICLE_TYPE_BALLOON5Hover, and friction, but no deflection

Scripted Vehicles can have a maximum Physics weight of 32.0 Above that the function will fail with a warning on the Debug Channel.

Example 1
llSetVehicleType(VEHICLE_TYPE_BALLOON);

The Linden Vehicle Tutorial

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.