diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 76be7cf..9567d80 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -5119,6 +5119,25 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
5119 | } | 5119 | } |
5120 | } | 5120 | } |
5121 | 5121 | ||
5122 | // Adam's super super custom animation functions | ||
5123 | public void osAvatarPlayAnimation(string avatar, string animation) | ||
5124 | { | ||
5125 | if (World.Entities.ContainsKey(avatar) && World.Entities[avatar] is ScenePresence) | ||
5126 | { | ||
5127 | ScenePresence target = (ScenePresence)World.Entities[avatar]; | ||
5128 | target.AddAnimation(avatar, 0); | ||
5129 | } | ||
5130 | } | ||
5131 | |||
5132 | public void osAvatarStopAnimation(string avatar, string animation) | ||
5133 | { | ||
5134 | if (World.Entities.ContainsKey(avatar) && World.Entities[avatar] is ScenePresence) | ||
5135 | { | ||
5136 | ScenePresence target = (ScenePresence)World.Entities[avatar]; | ||
5137 | target.RemoveAnimation(animation); | ||
5138 | } | ||
5139 | } | ||
5140 | |||
5122 | //Texture draw functions | 5141 | //Texture draw functions |
5123 | public string osMovePen(string drawList, int x, int y) | 5142 | public string osMovePen(string drawList, int x, int y) |
5124 | { | 5143 | { |