mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Applied Patch mantis 1220. Implements llGetStartParameter. Thanks!
This commit is contained in:
@@ -1406,6 +1406,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
group.ResetIDs();
|
||||
AddEntity(group);
|
||||
|
||||
// Set the startup parameter for on_rez event and llGetStartParameter() function
|
||||
group.StartParameter = param;
|
||||
|
||||
// we set it's position in world.
|
||||
group.AbsolutePosition = pos;
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using Axiom.Math;
|
||||
using libsecondlife;
|
||||
using libsecondlife.Packets;
|
||||
@@ -109,6 +110,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
private bool m_scriptListens_atTarget = false;
|
||||
private bool m_scriptListens_notAtTarget = false;
|
||||
|
||||
private int m_startparameter = 0;
|
||||
|
||||
#region Properties
|
||||
|
||||
@@ -121,6 +123,16 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// </summary>
|
||||
protected bool m_isSelected = false;
|
||||
|
||||
/// <summary>
|
||||
/// Set start parameter for on_rez event and llGetStartParameter()
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public int StartParameter
|
||||
{
|
||||
get { return m_startparameter; }
|
||||
set { m_startparameter = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -2202,8 +2202,8 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
public LSL_Types.LSLInteger llGetStartParameter()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetStartParameter");
|
||||
return 0;
|
||||
// NotImplemented("llGetStartParameter");
|
||||
return m_host.ParentGroup.StartParameter;
|
||||
}
|
||||
|
||||
public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos)
|
||||
|
||||
Reference in New Issue
Block a user