The new Constant: integer OBJECT_TEMP_ATTACHED = 34;
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com> Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>melanie
parent
9dd820765e
commit
7de2c8ae70
|
@ -13792,6 +13792,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
||||||
ret.Add(new LSL_String(av.Grouptitle));
|
ret.Add(new LSL_String(av.Grouptitle));
|
||||||
break;
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_TEMP_ATTACHED:
|
||||||
|
ret.Add(new LSL_Integer(0));
|
||||||
|
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));
|
||||||
|
@ -13984,6 +13987,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
||||||
ret.Add(new LSL_String(String.Empty));
|
ret.Add(new LSL_String(String.Empty));
|
||||||
break;
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_TEMP_ATTACHED:
|
||||||
|
if (obj.ParentGroup.AttachmentPoint != 0 && obj.ParentGroup.FromItemID == UUID.Zero)
|
||||||
|
{
|
||||||
|
ret.Add(new LSL_Integer(1));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ret.Add(new LSL_Integer(0));
|
||||||
|
}
|
||||||
|
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));
|
||||||
|
|
|
@ -641,6 +641,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
public const int OBJECT_PRIM_COUNT = 30;
|
public const int OBJECT_PRIM_COUNT = 30;
|
||||||
public const int OBJECT_TOTAL_INVENTORY_COUNT = 31;
|
public const int OBJECT_TOTAL_INVENTORY_COUNT = 31;
|
||||||
public const int OBJECT_GROUP_TAG = 33;
|
public const int OBJECT_GROUP_TAG = 33;
|
||||||
|
public const int OBJECT_TEMP_ATTACHED = 34;
|
||||||
|
|
||||||
// Pathfinding types
|
// Pathfinding types
|
||||||
public const int OPT_OTHER = -1;
|
public const int OPT_OTHER = -1;
|
||||||
|
|
Loading…
Reference in New Issue