diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
3 files changed, 16 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index a47e452..a6db2e5 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | |||
@@ -355,6 +355,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
355 | ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); | 355 | ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); |
356 | fromRegionPos = avatar.AbsolutePosition; | 356 | fromRegionPos = avatar.AbsolutePosition; |
357 | q = avatar.Rotation; | 357 | q = avatar.Rotation; |
358 | |||
359 | // Don't proceed if the avatar for this attachment has since been removed from the scene. | ||
360 | if (avatar == null) | ||
361 | return sensedEntities; | ||
358 | } | 362 | } |
359 | 363 | ||
360 | LSL_Types.Quaternion r = new LSL_Types.Quaternion(q); | 364 | LSL_Types.Quaternion r = new LSL_Types.Quaternion(q); |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index 2260ec8..b25894a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs | |||
@@ -332,7 +332,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
332 | void llSensorRemove(); | 332 | void llSensorRemove(); |
333 | void llSensorRepeat(string name, string id, int type, double range, double arc, double rate); | 333 | void llSensorRepeat(string name, string id, int type, double range, double arc, double rate); |
334 | void llSetAlpha(double alpha, int face); | 334 | void llSetAlpha(double alpha, int face); |
335 | void llSetAngularVelocity(LSL_Vector angvelocity, int local); | ||
336 | void llSetBuoyancy(double buoyancy); | 335 | void llSetBuoyancy(double buoyancy); |
337 | void llSetCameraAtOffset(LSL_Vector offset); | 336 | void llSetCameraAtOffset(LSL_Vector offset); |
338 | void llSetCameraEyeOffset(LSL_Vector offset); | 337 | void llSetCameraEyeOffset(LSL_Vector offset); |
@@ -344,6 +343,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
344 | void llSetDamage(double damage); | 343 | void llSetDamage(double damage); |
345 | void llSetForce(LSL_Vector force, int local); | 344 | void llSetForce(LSL_Vector force, int local); |
346 | void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local); | 345 | void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local); |
346 | void llSetVelocity(LSL_Vector velocity, int local); | ||
347 | void llSetAngularVelocity(LSL_Vector angularVelocity, int local); | ||
347 | void llSetHoverHeight(double height, int water, double tau); | 348 | void llSetHoverHeight(double height, int water, double tau); |
348 | void llSetInventoryPermMask(string item, int mask, int value); | 349 | void llSetInventoryPermMask(string item, int mask, int value); |
349 | void llSetLinkAlpha(int linknumber, double alpha, int face); | 350 | void llSetLinkAlpha(int linknumber, double alpha, int face); |
@@ -384,7 +385,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
384 | void llSetVehicleRotationParam(int param, LSL_Rotation rot); | 385 | void llSetVehicleRotationParam(int param, LSL_Rotation rot); |
385 | void llSetVehicleType(int type); | 386 | void llSetVehicleType(int type); |
386 | void llSetVehicleVectorParam(int param, LSL_Vector vec); | 387 | void llSetVehicleVectorParam(int param, LSL_Vector vec); |
387 | void llSetVelocity(LSL_Vector velocity, int local); | ||
388 | void llShout(int channelID, string text); | 388 | void llShout(int channelID, string text); |
389 | LSL_Float llSin(double f); | 389 | LSL_Float llSin(double f); |
390 | void llSitTarget(LSL_Vector offset, LSL_Rotation rot); | 390 | void llSitTarget(LSL_Vector offset, LSL_Rotation rot); |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index b58686b..2f528af 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | |||
@@ -1495,11 +1495,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1495 | m_LSL_Functions.llSetAlpha(alpha, face); | 1495 | m_LSL_Functions.llSetAlpha(alpha, face); |
1496 | } | 1496 | } |
1497 | 1497 | ||
1498 | public void llSetAngularVelocity(LSL_Vector angvelocity, int local) | ||
1499 | { | ||
1500 | m_LSL_Functions.llSetAngularVelocity(angvelocity, local); | ||
1501 | } | ||
1502 | |||
1503 | public void llSetBuoyancy(double buoyancy) | 1498 | public void llSetBuoyancy(double buoyancy) |
1504 | { | 1499 | { |
1505 | m_LSL_Functions.llSetBuoyancy(buoyancy); | 1500 | m_LSL_Functions.llSetBuoyancy(buoyancy); |
@@ -1555,6 +1550,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1555 | m_LSL_Functions.llSetForceAndTorque(force, torque, local); | 1550 | m_LSL_Functions.llSetForceAndTorque(force, torque, local); |
1556 | } | 1551 | } |
1557 | 1552 | ||
1553 | public void llSetVelocity(LSL_Vector force, int local) | ||
1554 | { | ||
1555 | m_LSL_Functions.llSetVelocity(force, local); | ||
1556 | } | ||
1557 | |||
1558 | public void llSetAngularVelocity(LSL_Vector force, int local) | ||
1559 | { | ||
1560 | m_LSL_Functions.llSetAngularVelocity(force, local); | ||
1561 | } | ||
1562 | |||
1558 | public void llSetHoverHeight(double height, int water, double tau) | 1563 | public void llSetHoverHeight(double height, int water, double tau) |
1559 | { | 1564 | { |
1560 | m_LSL_Functions.llSetHoverHeight(height, water, tau); | 1565 | m_LSL_Functions.llSetHoverHeight(height, water, tau); |
@@ -1745,11 +1750,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1745 | m_LSL_Functions.llSetVehicleVectorParam(param, vec); | 1750 | m_LSL_Functions.llSetVehicleVectorParam(param, vec); |
1746 | } | 1751 | } |
1747 | 1752 | ||
1748 | public void llSetVelocity(LSL_Vector velocity, int local) | ||
1749 | { | ||
1750 | m_LSL_Functions.llSetVelocity(velocity, local); | ||
1751 | } | ||
1752 | |||
1753 | public void llShout(int channelID, string text) | 1753 | public void llShout(int channelID, string text) |
1754 | { | 1754 | { |
1755 | m_LSL_Functions.llShout(channelID, text); | 1755 | m_LSL_Functions.llShout(channelID, text); |