From 2d6c21e8fc8c1d8d69911c91d10c8896b312994a Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 2 Feb 2008 08:11:14 +0000 Subject: * Added Full support for llSetTextureAnim. To ckrinke: Let the fountains of Wright Plaza flow! * Fixed another bug in LibSL. This is the same version, as before just with a bug fix. --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 3f719fb..4054369 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -42,6 +42,7 @@ using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; namespace OpenSim.Region.ScriptEngine.Common { + /// /// Contains all LSL ll-functions. This class will be in Default AppDomain. /// @@ -2005,16 +2006,24 @@ namespace OpenSim.Region.ScriptEngine.Common return String.Empty; } + + public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) { Primitive.TextureAnimation pTexAnim = new Primitive.TextureAnimation(); - pTexAnim.Flags = (uint)mode; + pTexAnim.Flags =(uint) mode; + + //ALL_SIDES + if (face == -1) + face = 255; + pTexAnim.Face = (uint)face; pTexAnim.Length = (float)length; pTexAnim.Rate = (float)rate; pTexAnim.SizeX = (uint)sizex; pTexAnim.SizeY = (uint)sizey; pTexAnim.Start = (float)start; + m_host.AddTextureAnimation(pTexAnim); m_host.SendFullUpdateToAllClients(); } -- cgit v1.1