diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
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) |