aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index a74f304..74935b2 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -4691,8 +4691,18 @@ namespace OpenSim.Region.ScriptEngine.Common
4691 public LSL_Types.Vector3 llGetAgentSize(string id) 4691 public LSL_Types.Vector3 llGetAgentSize(string id)
4692 { 4692 {
4693 m_host.AddScriptLPS(1); 4693 m_host.AddScriptLPS(1);
4694 NotImplemented("llGetAgentSize"); 4694 ScenePresence avatar = World.GetScenePresence(id);
4695 return new LSL_Types.Vector3(); 4695 LSL_Types.Vector3 agentSize;
4696 if (avatar == null)
4697 {
4698 agentSize = BuiltIn_Commands_BaseClass.ZERO_VECTOR;
4699 }
4700 else
4701 {
4702 PhysicsVector size = avatar.PhysicsActor.Size;
4703 agentSize = new LSL_Types.Vector3(size.X, size.Y, size.Z);
4704 }
4705 return agentSize;
4696 } 4706 }
4697 4707
4698 public LSL_Types.LSLInteger llSameGroup(string agent) 4708 public LSL_Types.LSLInteger llSameGroup(string agent)