public llGetParcelPrimOwners ( OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3 pos ) : OpenSim.Region.ScriptEngine.Shared.LSL_Types.list | ||
pos | OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3 | |
return | OpenSim.Region.ScriptEngine.Shared.LSL_Types.list |
public LSL_List llGetParcelPrimOwners(LSL_Vector pos)
{
m_host.AddScriptLPS(1);
LandObject land = (LandObject)World.LandChannel.GetLandObject((float)pos.x, (float)pos.y);
LSL_List ret = new LSL_List();
if (land != null)
{
foreach (KeyValuePair<UUID, int> detectedParams in land.GetLandObjectOwners())
{
ret.Add(new LSL_String(detectedParams.Key.ToString()));
ret.Add(new LSL_Integer(detectedParams.Value));
}
}
ScriptSleep(m_sleepMsOnGetParcelPrimOwners);
return ret;
}