mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
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
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
539165e6bd
commit
c9742c826d
@@ -3162,6 +3162,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
}
|
||||
|
||||
public LSL_Float llGetMassMKS()
|
||||
{
|
||||
// this is what the wiki says it does!
|
||||
// http://wiki.secondlife.com/wiki/LlGetMassMKS
|
||||
return llGetMass() * 100.0;
|
||||
}
|
||||
|
||||
public void llCollisionFilter(string name, string id, int accept)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
Reference in New Issue
Block a user