aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-16 17:57:34 +0000
committerJustin Clarke Casey2008-09-16 17:57:34 +0000
commitad7df5b500d36ef903b764e96e34e2ce9f397eb6 (patch)
treef7ce125bfc6eb00c50ab9ccce0b69e038d58000d /OpenSim/Region/ScriptEngine/Shared/Api
parent* Apply http://opensimulator.org/mantis/view.php?id=2203 (diff)
downloadopensim-SC_OLD-ad7df5b500d36ef903b764e96e34e2ce9f397eb6.zip
opensim-SC_OLD-ad7df5b500d36ef903b764e96e34e2ce9f397eb6.tar.gz
opensim-SC_OLD-ad7df5b500d36ef903b764e96e34e2ce9f397eb6.tar.bz2
opensim-SC_OLD-ad7df5b500d36ef903b764e96e34e2ce9f397eb6.tar.xz
* Apply http://opensimulator.org/mantis/view.php?id=2204 (with a small tweak)
* Attached patch implements LSL llGetAgentSize() for DotNetEngine and XEngine. * Thanks Y. Nitta!
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 249b4dd..9864394 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4536,8 +4536,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4536 public LSL_Types.Vector3 llGetAgentSize(string id) 4536 public LSL_Types.Vector3 llGetAgentSize(string id)
4537 { 4537 {
4538 m_host.AddScriptLPS(1); 4538 m_host.AddScriptLPS(1);
4539 NotImplemented("llGetAgentSize"); 4539 ScenePresence avatar = World.GetScenePresence(id);
4540 return new LSL_Types.Vector3(); 4540 LSL_Types.Vector3 agentSize;
4541 if (avatar == null)
4542 {
4543 agentSize = ScriptBaseClass.ZERO_VECTOR;
4544 }
4545 else
4546 {
4547 PhysicsVector size = avatar.PhysicsActor.Size;
4548 agentSize = new LSL_Types.Vector3(size.X, size.Y, size.Z);
4549 }
4550 return agentSize;
4541 } 4551 }
4542 4552
4543 public LSL_Types.LSLInteger llSameGroup(string agent) 4553 public LSL_Types.LSLInteger llSameGroup(string agent)