diff options
author | Teravus Ovares | 2008-01-17 02:23:48 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-01-17 02:23:48 +0000 |
commit | c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26 (patch) | |
tree | 8d2c29d6623d9e5c61634e8f7a742858eee2a5db /OpenSim/Region/Environment/Scenes/SceneEvents.cs | |
parent | * Fixed standing up so that you're at the new position of the prim if you mov... (diff) | |
download | opensim-SC_OLD-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.zip opensim-SC_OLD-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.tar.gz opensim-SC_OLD-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.tar.bz2 opensim-SC_OLD-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.tar.xz |
* Added and implemented the LSL changed event.
* An example changed event syntax is at: http://opensimulator.org/wiki/Changed_Event_Example
* You can use this to trigger actions in your script if someone sits on your object_rez
* You can use this to figure out all of the CHANGED_ constants except for CHANGED_REGION, CHANGED_TELEPORT, and CHANGED_ALLOW_DROP
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 739f86d..4e9a258 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -125,7 +125,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
125 | 125 | ||
126 | public event NewGridInstantMessage OnGridInstantMessageToGroupsModule; | 126 | public event NewGridInstantMessage OnGridInstantMessageToGroupsModule; |
127 | 127 | ||
128 | public delegate void ScriptChangedEvent(uint localID, uint change); | ||
129 | |||
130 | public event ScriptChangedEvent OnScriptChangedEvent; | ||
128 | 131 | ||
132 | public void TriggerOnScriptChangedEvent(uint localID, uint change) | ||
133 | { | ||
134 | if (OnScriptChangedEvent != null) | ||
135 | OnScriptChangedEvent(localID,change); | ||
136 | } | ||
129 | 137 | ||
130 | public void TriggerOnClientMovement(ScenePresence avatar) | 138 | public void TriggerOnClientMovement(ScenePresence avatar) |
131 | { | 139 | { |