From ee4fd874639c49b6e581cea39d7878b530cfbe6d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 12 Jan 2021 15:41:14 +0000 Subject: [PATCH] good idea to commit the actual code.. --- .../Shared/Api/Implementation/OSSL_Api.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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