aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
diff options
context:
space:
mode:
authorMelanie2011-10-25 02:26:56 +0100
committerMelanie2011-10-25 02:26:56 +0100
commite2de57ca29116fd1dae77065104d7f431da711fc (patch)
treead5ed1720690812044cbfc7fb6072283b4e144c7 /OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
parentMerge commit '730460169f2a45e934b42b2464f7c7472f7fac48' into bigmerge (diff)
parentImplement osNpcSit(). This is still in development so don't trust it (diff)
downloadopensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.zip
opensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.tar.gz
opensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.tar.bz2
opensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.tar.xz
Merge commit '0c041ce12f393367e2754e88d9b8dad5e45f88c4' into bigmerge
Conflicts: OpenSim/Region/Framework/Scenes/ScenePresence.cs
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index bcd9e94..be73639 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -199,6 +199,24 @@ namespace OpenSim.Region.OptionalModules.World.NPC
199 return false; 199 return false;
200 } 200 }
201 201
202 public bool Sit(UUID agentID, UUID partID, Scene scene)
203 {
204 lock (m_avatars)
205 {
206 if (m_avatars.ContainsKey(agentID))
207 {
208 ScenePresence sp;
209 scene.TryGetScenePresence(agentID, out sp);
210 sp.HandleAgentRequestSit(m_avatars[agentID], agentID, partID, Vector3.Zero);
211 sp.HandleAgentSit(m_avatars[agentID], agentID);
212
213 return true;
214 }
215 }
216
217 return false;
218 }
219
202 public bool DeleteNPC(UUID agentID, Scene scene) 220 public bool DeleteNPC(UUID agentID, Scene scene)
203 { 221 {
204 lock (m_avatars) 222 lock (m_avatars)