public llSetHoverHeight ( double height, int water, double tau ) : void | ||
height | double | Height to hover. Height of zero disables hover. |
water | int | False if height is calculated just from ground, otherwise uses ground or water depending on whichever is higher |
tau | double | Number of seconds over which to reach target |
return | void |
public void llSetHoverHeight(double height, int water, double tau)
{
if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;
if (m_host.PhysActor != null)
{
PIDHoverType hoverType = PIDHoverType.Ground;
if (water != 0)
{
hoverType = PIDHoverType.GroundAndWater;
}
m_host.SetHoverHeight((float)height, hoverType, (float)tau);
}
}