diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index a1c6352832..6d775bbb76 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -6020,5 +6020,29 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api m_envModule.WindlightRefresh(transition); return 1; } + + public void osParticleSystem(LSL_List rules, LSL_Integer expire) + { + m_host.AddScriptLPS(1); + + InitLSL(); + if (m_LSL_Api != null) + m_LSL_Api.SetParticleSystem(m_host, rules, "osParticleSystem", expire == 1); + } + + public void osLinkParticleSystem(LSL_Integer linknumber, LSL_List rules, LSL_Integer expire) + { + InitLSL(); + if (m_LSL_Api != null) + { + List parts = m_LSL_Api.GetLinkParts(linknumber); + + foreach (SceneObjectPart part in parts) + { + m_LSL_Api.SetParticleSystem(part, rules, "osLinkParticleSystem", expire == 1); + } + } + } + } } \ No newline at end of file