Missing constants for llGetObjectDetails
OBJECT_BODY_SHAPE_TYPE OBJECT_HOVER_HEIGHT OBJECT_LAST_OWNER_ID OBJECT_RENDER_WEIGHT Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>inv-download
parent
5a2440dfdf
commit
382e05df14
|
@ -13051,6 +13051,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
case ScriptBaseClass.OBJECT_TEMP_ON_REZ:
|
case ScriptBaseClass.OBJECT_TEMP_ON_REZ:
|
||||||
ret.Add(new LSL_Integer(0));
|
ret.Add(new LSL_Integer(0));
|
||||||
break;
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_RENDER_WEIGHT:
|
||||||
|
ret.Add(new LSL_Integer(-1));
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_HOVER_HEIGHT:
|
||||||
|
ret.Add(new LSL_Float(0));
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_BODY_SHAPE_TYPE:
|
||||||
|
LSL_Float shapeType;
|
||||||
|
if (av.Appearance.VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MALE] != 0)
|
||||||
|
shapeType = new LSL_Float(1);
|
||||||
|
else
|
||||||
|
shapeType = new LSL_Float(0);
|
||||||
|
ret.Add(shapeType);
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_LAST_OWNER_ID:
|
||||||
|
ret.Add(new LSL_Key(ScriptBaseClass.NULL_KEY));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// Invalid or unhandled constant.
|
// Invalid or unhandled constant.
|
||||||
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
||||||
|
@ -13215,6 +13232,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
case ScriptBaseClass.OBJECT_TEMP_ON_REZ:
|
case ScriptBaseClass.OBJECT_TEMP_ON_REZ:
|
||||||
ret.Add(new LSL_Integer(obj.ParentGroup.IsTemporary ? 1 : 0));
|
ret.Add(new LSL_Integer(obj.ParentGroup.IsTemporary ? 1 : 0));
|
||||||
break;
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_RENDER_WEIGHT:
|
||||||
|
ret.Add(new LSL_Integer(0));
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_HOVER_HEIGHT:
|
||||||
|
ret.Add(new LSL_Float(0));
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_BODY_SHAPE_TYPE:
|
||||||
|
ret.Add(new LSL_Float(-1));
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_LAST_OWNER_ID:
|
||||||
|
ret.Add(new LSL_Key(obj.ParentGroup.LastOwnerID.ToString()));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// Invalid or unhandled constant.
|
// Invalid or unhandled constant.
|
||||||
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
||||||
|
|
|
@ -596,6 +596,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
public const int OBJECT_PHYSICS = 21;
|
public const int OBJECT_PHYSICS = 21;
|
||||||
public const int OBJECT_PHANTOM = 22;
|
public const int OBJECT_PHANTOM = 22;
|
||||||
public const int OBJECT_TEMP_ON_REZ = 23;
|
public const int OBJECT_TEMP_ON_REZ = 23;
|
||||||
|
public const int OBJECT_RENDER_WEIGHT = 24;
|
||||||
|
public const int OBJECT_HOVER_HEIGHT = 25;
|
||||||
|
public const int OBJECT_BODY_SHAPE_TYPE = 26;
|
||||||
|
public const int OBJECT_LAST_OWNER_ID = 27;
|
||||||
|
|
||||||
// Pathfinding types
|
// Pathfinding types
|
||||||
public const int OPT_OTHER = -1;
|
public const int OPT_OTHER = -1;
|
||||||
|
|
Loading…
Reference in New Issue