Skip to content
lsl.devlsl.devLSL Dev

llStopHover

function
Function syntax
llStopHover();
Energy
10

Stops the hover behavior (such as that initiated by llSetHoverHeight).

Stop hovering to a height

How to use
llStopHover();
Example 1
12 collapsed lines
// Put in an attached prim and touch to start floating in air without flying.
// Touch again to drop to the ground.
integer gHovering = FALSE; // are we supposd to be hovering now?
default {
touch_start(integer total_number) {
if (!llGetAttached()) {
llWhisper(0, "Wear me to play.");
return;
}
if (gHovering) {
llOwnerSay("Releasing you.");
llStopHover();
}
else {
10 collapsed lines
llOwnerSay("Making you float...");
// Start hovering 5 meters over our current location.
vector myPosition = llGetPos();
llSetHoverHeight(myPosition.z - llGround(ZERO_VECTOR) + 5.0, FALSE, 1.0);
}
gHovering = !gHovering; // flip the switch
}
}
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.

From the Second Life Wiki

Community documentation adapted from LlStopHover, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.