mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Allows to use the new script engine feature. Begin your script with
//XEngine: or //DotNetEnine: , optionally followed by a language like //XEngine:lsl, and it will be run on the chosen engine.
This commit is contained in:
@@ -341,6 +341,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine)
|
||||
{
|
||||
if (script.Length > 10)
|
||||
{
|
||||
if (script.Substring(0, 10) == "//XEngine:")
|
||||
{
|
||||
script = "//" + script.Substring(10);
|
||||
engine = "XEngine";
|
||||
}
|
||||
}
|
||||
|
||||
if (engine != "XEngine")
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user