VehicleFlag
Constants in the VehicleFlag flag set. These are flags and can be combined with bitwise OR.
integer VEHICLE_FLAG_BLOCK_INTERFERENCE = 0x400; // Vehicle flag that prevents attachments worn by passengers from pushing the vehicle via llPushObject or other scripting functions.integer VEHICLE_FLAG_CAMERA_DECOUPLED = 0x200; // Vehicle flag used with mouselook steering/banking.integer VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 0x10; // Vehicle flag that forces the hover behavior to maintain a global height rather than hovering relative to the ground or water.integer VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 0x8; // Vehicle flag that forces the hover behavior to ignore water height and hover exclusively relative to the terrain/land.integer VEHICLE_FLAG_HOVER_UP_ONLY = 0x20; // Vehicle flag preventing hover from pushing downward, allowing hovering vehicles to jump or fly above their designated hover height.integer VEHICLE_FLAG_HOVER_WATER_ONLY = 0x4; // Vehicle flag that forces the hover behavior to ignore terrain height and hover exclusively relative to water.integer VEHICLE_FLAG_LIMIT_MOTOR_UP = 0x40; // Vehicle flag that prevents ground vehicles from motoring upward into the sky.integer VEHICLE_FLAG_LIMIT_ROLL_ONLY = 0x2; // Vehicle flag for vehicles with a vertical attractor that need to climb or dive, allowing airplanes to use the banking feature.integer VEHICLE_FLAG_MOUSELOOK_BANK = 0x100; // Vehicle flag that enables mouselook control, remapping left-right camera motions (yaw) to rotations about the vehicle's local X-axis.integer VEHICLE_FLAG_MOUSELOOK_STEER = 0x80; // Vehicle flag that enables steering via mouse, directing the angular motor to align the vehicle's local X-axis with the direction of the client-side camera.integer VEHICLE_FLAG_NO_DEFLECTION_UP = 0x1; // Vehicle flag that prevents linear deflection parallel to the world Z-axis, preventing ground vehicles (such as bumper cars) from climbing into the sky.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
VEHICLE_FLAG_BLOCK_INTERFERENCE | integer | 0x400 | Vehicle flag that prevents attachments worn by passengers from pushing the vehicle via llPushObject or other scripting functions. |
VEHICLE_FLAG_CAMERA_DECOUPLED | integer | 0x200 | Vehicle flag used with mouselook steering/banking. When set, the passenger's mouselook camera rotates independently of the vehicle's orientation. |
VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT | integer | 0x10 | Vehicle flag that forces the hover behavior to maintain a global height rather than hovering relative to the ground or water. |
VEHICLE_FLAG_HOVER_TERRAIN_ONLY | integer | 0x8 | Vehicle flag that forces the hover behavior to ignore water height and hover exclusively relative to the terrain/land. |
VEHICLE_FLAG_HOVER_UP_ONLY | integer | 0x20 | Vehicle flag preventing hover from pushing downward, allowing hovering vehicles to jump or fly above their designated hover height. |
VEHICLE_FLAG_HOVER_WATER_ONLY | integer | 0x4 | Vehicle flag that forces the hover behavior to ignore terrain height and hover exclusively relative to water. |
VEHICLE_FLAG_LIMIT_MOTOR_UP | integer | 0x40 | Vehicle flag that prevents ground vehicles from motoring upward into the sky. When combined with banking, banking strength decays when the vehicle is airborne (no longer colliding) to prevent steering mid-jump. |
VEHICLE_FLAG_LIMIT_ROLL_ONLY | integer | 0x2 | Vehicle flag for vehicles with a vertical attractor that need to climb or dive, allowing airplanes to use the banking feature. |
VEHICLE_FLAG_MOUSELOOK_BANK | integer | 0x100 | Vehicle flag that enables mouselook control, remapping left-right camera motions (yaw) to rotations about the vehicle's local X-axis. |
VEHICLE_FLAG_MOUSELOOK_STEER | integer | 0x80 | Vehicle flag that enables steering via mouse, directing the angular motor to align the vehicle's local X-axis with the direction of the client-side camera. |
VEHICLE_FLAG_NO_DEFLECTION_UP | integer | 0x1 | Vehicle flag that prevents linear deflection parallel to the world Z-axis, preventing ground vehicles (such as bumper cars) from climbing into the sky. |
Used by
llRemoveVehicleFlagsfunctionDisables the specified vehicle flags (sets them to FALSE) using the bitwise mask flags.llSetVehicleFlagsfunctionEnables the vehicle flags specified in the Flags bitmask.