llGenerateKey implementation. Creates a random UUID I.E: UUID.Random().ToString();

Signed-off-by: TBG Renfold <tbg.renfold@g2mv.co.uk>
This commit is contained in:
TBG Renfold
2012-04-24 19:38:37 +01:00
committed by Justin Clark-Casey (justincc)
parent d0598c63f3
commit 9c2a73b61e
3 changed files with 13 additions and 0 deletions

View File

@@ -1734,6 +1734,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
rgb.y = texcolor.G;
rgb.z = texcolor.B;
return rgb;
}
else
{
@@ -3192,6 +3193,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return m_host.UUID.ToString();
}
public LSL_Key llGenerateKey()
{
m_host.AddScriptLPS(1);
return UUID.Random().ToString();
}
public void llSetBuoyancy(double buoyancy)
{
m_host.AddScriptLPS(1);