diff options
author | Talun | 2014-05-02 19:48:22 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-05-06 17:31:21 +0100 |
commit | c9742c826d7bf2bd0f99c93cf7ecb4edc9940064 (patch) | |
tree | 367fe21582bde3356f3892af77b2232ab4f56c42 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | minor: Change configuration text in config files to reflect the existing situ... (diff) | |
download | opensim-SC_OLD-c9742c826d7bf2bd0f99c93cf7ecb4edc9940064.zip opensim-SC_OLD-c9742c826d7bf2bd0f99c93cf7ecb4edc9940064.tar.gz opensim-SC_OLD-c9742c826d7bf2bd0f99c93cf7ecb4edc9940064.tar.bz2 opensim-SC_OLD-c9742c826d7bf2bd0f99c93cf7ecb4edc9940064.tar.xz |
Mantis 7146 The lsl function llGetMassMKS is not implemented
This patch implements llGetMassMKS as it is described in the wiki
http://wiki.secondlife.com/wiki/LlGetMassMKS
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index d169912..1dcd1cc 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3162,6 +3162,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3162 | } | 3162 | } |
3163 | } | 3163 | } |
3164 | 3164 | ||
3165 | public LSL_Float llGetMassMKS() | ||
3166 | { | ||
3167 | // this is what the wiki says it does! | ||
3168 | // http://wiki.secondlife.com/wiki/LlGetMassMKS | ||
3169 | return llGetMass() * 100.0; | ||
3170 | } | ||
3171 | |||
3165 | public void llCollisionFilter(string name, string id, int accept) | 3172 | public void llCollisionFilter(string name, string id, int accept) |
3166 | { | 3173 | { |
3167 | m_host.AddScriptLPS(1); | 3174 | m_host.AddScriptLPS(1); |