diff options
author | Melanie | 2010-03-15 17:12:08 +0000 |
---|---|---|
committer | Melanie | 2010-03-15 17:12:08 +0000 |
commit | 898fa637c3ef1e86d093239e4b968910b978dea5 (patch) | |
tree | 4497805d6113335b82603ec33b8845aea0e47351 /OpenSim/Region/ScriptEngine/Shared | |
parent | Cache UserLevel in ScenePresence on SP creation. Change IsAdministrator (diff) | |
parent | Merge branch 'master' of ssh://3dhosting.de/var/git/careminster (diff) | |
download | opensim-SC-898fa637c3ef1e86d093239e4b968910b978dea5.zip opensim-SC-898fa637c3ef1e86d093239e4b968910b978dea5.tar.gz opensim-SC-898fa637c3ef1e86d093239e4b968910b978dea5.tar.bz2 opensim-SC-898fa637c3ef1e86d093239e4b968910b978dea5.tar.xz |
Merge branch 'careminster' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 093cd0b..62eae76 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2899,10 +2899,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2899 | // the angles of rotation in radians into rotation value | 2899 | // the angles of rotation in radians into rotation value |
2900 | 2900 | ||
2901 | LSL_Types.Quaternion rot = llEuler2Rot(angle); | 2901 | LSL_Types.Quaternion rot = llEuler2Rot(angle); |
2902 | /* | ||
2902 | Quaternion rotation = new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s); | 2903 | Quaternion rotation = new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s); |
2903 | m_host.startLookAt(rotation, (float)damping, (float)strength); | 2904 | m_host.startLookAt(rotation, (float)damping, (float)strength); |
2905 | This would only work if your physics system contains an APID controller */ | ||
2904 | // Orient the object to the angle calculated | 2906 | // Orient the object to the angle calculated |
2905 | //llSetRot(rot); | 2907 | llSetRot(rot); |
2906 | } | 2908 | } |
2907 | 2909 | ||
2908 | public void llRotLookAt(LSL_Rotation target, double strength, double damping) | 2910 | public void llRotLookAt(LSL_Rotation target, double strength, double damping) |
@@ -4017,14 +4019,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4017 | bucket); | 4019 | bucket); |
4018 | 4020 | ||
4019 | if (m_TransferModule != null) | 4021 | if (m_TransferModule != null) |
4020 | m_TransferModule.SendInstantMessage(msg, delegate(bool success) {}); | 4022 | m_TransferModule.SendInstantMessage(msg, delegate(bool success) {}); |
4023 | |||
4024 | //This delay should only occur when giving inventory to avatars. | ||
4025 | ScriptSleep(3000); | ||
4021 | } | 4026 | } |
4022 | else | 4027 | else |
4023 | { | 4028 | { |
4024 | // destination is an object | 4029 | // destination is an object |
4025 | World.MoveTaskInventoryItem(destId, m_host, objId); | 4030 | World.MoveTaskInventoryItem(destId, m_host, objId); |
4026 | } | 4031 | } |
4027 | ScriptSleep(3000); | 4032 | |
4028 | } | 4033 | } |
4029 | 4034 | ||
4030 | [DebuggerNonUserCode] | 4035 | [DebuggerNonUserCode] |