mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
llName2Key. Thanks to mewtwo0641 and watcher64.
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
committed by
UbitUmarov
parent
7c8cf9f362
commit
06a35b9559
@@ -6844,6 +6844,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
public LSL_Key llName2Key(string name)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
foreach (ScenePresence sp in World.GetScenePresences())
|
||||
{
|
||||
string test = sp.ControllingClient.Name;
|
||||
if (!name.Contains(" "))
|
||||
test = test.Replace(" ", ".");
|
||||
|
||||
if (String.Compare(name, test, true) == 0)
|
||||
{
|
||||
if (!sp.IsNPC)
|
||||
return sp.UUID.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
return UUID.Zero.ToString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate)
|
||||
|
||||
Reference in New Issue
Block a user