add LSL_Key osGetLastChangedEventKey() ( it is a alias for lldetectedkey(0) but don't tell anyone

This commit is contained in:
UbitUmarov
2019-02-21 23:41:49 +00:00
parent 5d78f52f7b
commit 6e05695244
3 changed files with 15 additions and 0 deletions

View File

@@ -5455,5 +5455,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return item.Description;
}
public LSL_Key osGetLastChangedEventKey()
{
m_host.AddScriptLPS(1);
DetectParams detectedParams = m_ScriptEngine.GetDetectParams(m_item.ItemID, 0);
if (detectedParams == null)
return String.Empty;
return detectedParams.Key.ToString();
}
}
}