mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
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:
committed by
Justin Clark-Casey (justincc)
parent
d0598c63f3
commit
9c2a73b61e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user