Skip to content
lsl.devlsl.devLSL Dev

VEHICLE_FLAG_HOVER_TERRAIN_ONLY

constant
Constant
integer VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 0x8;

Constant groups

VehicleFlag

Other VehicleFlag values (10)

Makes the vehicle float over land.

If you wanted to make a boat you should set the VEHICLE_FLAG_HOVER_WATER_ONLY flag, or if you wanted to drive a hover tank under water you would use the VEHICLE_FLAG_HOVER_TERRAIN_ONLY flag instead. Finally, if you wanted to make a submarine or a balloon you would use the VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT.

The vehicle flags are independent of each other and that setting two contradictory flags will have undefined behavior. The flags are set using the script call llSetVehicleFlags.

|

FlagsDescription
VEHICLE_FLAG_NO_DEFLECTION_UP0x001This flag prevents linear deflection parallel to world z-axis. This is useful for preventing ground vehicles with large linear deflection, like bumper cars, from climbing their linear deflection into the sky.
VEHICLE_FLAG_LIMIT_ROLL_ONLY0x002For vehicles with vertical attractor that want to be able to climb/dive, for instance, airplanes that want to use the banking feature.
VEHICLE_FLAG_HOVER_WATER_ONLY0x004Ignore terrain height when hovering.
VEHICLE_FLAG_HOVER_TERRAIN_ONLY0x008Ignore water height when hovering.
VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT0x010Hover at global height instead of height above ground or water.
VEHICLE_FLAG_HOVER_UP_ONLY0x020Hover doesn’t push down. Use this flag for hovering vehicles that should be able to jump above their hover height.
VEHICLE_FLAG_LIMIT_MOTOR_UP0x040Prevents ground vehicles from motoring into the sky. This flag has a subtle effect when used with conjunction with banking: the strength of the banking will decay when the vehicle no longer experiences collisions. The decay timescale is the same as VEHICLE_BANKING_TIMESCALE. This is to help prevent ground vehicles from steering when they are in mid jump.
VEHICLE_FLAG_MOUSELOOK_STEER0x080Steer the vehicle using the mouse. Use this flag to make the angular motor try to make the vehicle turn such that its local x-axis points in the same direction as the client-side camera.
VEHICLE_FLAG_MOUSELOOK_BANK0x100Same as above, but relies on banking. It remaps left-right motions of the client camera (also known as “yaw”) to rotations about the vehicle’s local x-axis.
VEHICLE_FLAG_CAMERA_DECOUPLED0x200Makes mouselook camera rotate independently of the vehicle. By default the client mouselook camera will rotate about with the vehicle, however when this flag is set the camera direction is independent of the vehicle’s rotation.
VEHICLE_FLAG_BLOCK_INTERFERENCE0x400Prevents attachments worn by the vehicle’s passengers from pushing the vehicle via llPushObject and similar functions.
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.