mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* Updates LSL2CS converter
* All objects are not touchable by default now * When a script listens for one of the touch events in the state, an object becomes touchable. * All LSL scripts report which events they consume now ** This uses semi-complicated Regex to discover the events, stick them in a dictionary, and then write a method call into each script state's state_entry() event. ** Tedd may figure out a better way to do this in the future. For now, this works for LSL.
This commit is contained in:
@@ -51,6 +51,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
if (part != null)
|
||||
{
|
||||
part.StartScript(itemID);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -119,6 +120,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
if (part != null)
|
||||
{
|
||||
part.StopScript(itemID);
|
||||
RemoveScriptEvents(itemID);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user