diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 17fd862..010961e 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -1499,7 +1499,13 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1499 | public void llSetBuoyancy(double buoyancy) | 1499 | public void llSetBuoyancy(double buoyancy) |
1500 | { | 1500 | { |
1501 | m_host.AddScriptLPS(1); | 1501 | m_host.AddScriptLPS(1); |
1502 | NotImplemented("llSetBuoyancy"); | 1502 | if (m_host.ParentGroup != null) |
1503 | { | ||
1504 | if (m_host.ParentGroup.RootPart != null) | ||
1505 | { | ||
1506 | m_host.ParentGroup.RootPart.SetBuoyancy((float)buoyancy); | ||
1507 | } | ||
1508 | } | ||
1503 | } | 1509 | } |
1504 | 1510 | ||
1505 | public void llSetHoverHeight(double height, int water, double tau) | 1511 | public void llSetHoverHeight(double height, int water, double tau) |