OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.osSetDynamicTextureURL C# (CSharp) Method

osSetDynamicTextureURL() public method

public osSetDynamicTextureURL ( string dynamicID, string contentType, string url, string extraParams, int timer ) : string
dynamicID string
contentType string
url string
extraParams string
timer int
return string
        public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
                                             int timer)
        {
            // This may be upgraded depending on the griefing or DOS
            // potential, or guarded with a delay
            //
            CheckThreatLevel(ThreatLevel.VeryLow, "osSetDynamicTextureURL");

            m_host.AddScriptLPS(1);
            if (dynamicID == String.Empty)
            {
                IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
                UUID createdTexture =
                    textureManager.AddDynamicTextureURL(World.RegionInfo.RegionID, m_host.UUID, contentType, url,
                                                        extraParams, timer);
                return createdTexture.ToString();
            }
            else
            {
                //TODO update existing dynamic textures
            }

            return UUID.Zero.ToString();
        }
OSSL_Api