good idea to commit the actual code..

This commit is contained in:
UbitUmarov
2021-01-12 15:41:14 +00:00
parent 72f7009b10
commit ee4fd87463

View File

@@ -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<SceneObjectPart> parts = m_LSL_Api.GetLinkParts(linknumber);
foreach (SceneObjectPart part in parts)
{
m_LSL_Api.SetParticleSystem(part, rules, "osLinkParticleSystem", expire == 1);
}
}
}
}
}