mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
good idea to commit the actual code..
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user