mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Added OnRezScript event to Scene.EventManager.Which the script engine should subscribe to. This is triggered whenever a script is moved into a primitive (and includes the localid of the prim and the script text as params) . Currently though the script item isn't deleted from a users inventory, nor does it actually show up in the objects inventory (this will be fixed soon.) So that means that it isn't currently possible to edit a script (or delete it) once it has been added to a primitive.
This commit is contained in:
@@ -472,6 +472,11 @@ namespace OpenSim.Region.ClientStack
|
||||
break;
|
||||
case PacketType.RezScript:
|
||||
//Console.WriteLine(Pack.ToString());
|
||||
RezScriptPacket rezScript = (RezScriptPacket)Pack;
|
||||
if (OnRezScript != null)
|
||||
{
|
||||
OnRezScript(this, rezScript.InventoryBlock.ItemID, rezScript.UpdateBlock.ObjectLocalID);
|
||||
}
|
||||
break;
|
||||
case PacketType.MapLayerRequest:
|
||||
this.RequestMapLayer();
|
||||
|
||||
Reference in New Issue
Block a user