diff options
author | Melanie | 2012-08-21 20:13:55 +0200 |
---|---|---|
committer | Melanie | 2012-08-21 20:13:55 +0200 |
commit | 8d2a37c5a48fbe822ebe138b65c33b25c9899e4c (patch) | |
tree | 927a790e11987b86962a744b08099d2d87a31708 /OpenSim/Region/ScriptEngine/Shared | |
parent | Cause a persistence save if prim flags change (diff) | |
download | opensim-SC-8d2a37c5a48fbe822ebe138b65c33b25c9899e4c.zip opensim-SC-8d2a37c5a48fbe822ebe138b65c33b25c9899e4c.tar.gz opensim-SC-8d2a37c5a48fbe822ebe138b65c33b25c9899e4c.tar.bz2 opensim-SC-8d2a37c5a48fbe822ebe138b65c33b25c9899e4c.tar.xz |
Implement seeing busy status in LSL
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index d6aafaf..3e1b43e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6090,6 +6090,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6090 | flags |= ScriptBaseClass.AGENT_AWAY; | 6090 | flags |= ScriptBaseClass.AGENT_AWAY; |
6091 | } | 6091 | } |
6092 | 6092 | ||
6093 | UUID busy = new UUID("efcf670c-2d18-8128-973a-034ebc806b67"); | ||
6094 | UUID[] anims = agent.Animator.GetAnimationArray(); | ||
6095 | if (Array.Exists<UUID>(anims, a => { return a == busy; })) | ||
6096 | { | ||
6097 | flags |= ScriptBaseClass.AGENT_BUSY; | ||
6098 | } | ||
6099 | |||
6093 | // seems to get unset, even if in mouselook, when avatar is sitting on a prim??? | 6100 | // seems to get unset, even if in mouselook, when avatar is sitting on a prim??? |
6094 | if ((agent.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0) | 6101 | if ((agent.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0) |
6095 | { | 6102 | { |