Implement osNpcStand(<npc-id>)

Allows you to stand an NPC that has sat.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-10-17 01:56:25 +01:00
parent ddcb88ff53
commit de161585c0
6 changed files with 48 additions and 2 deletions

View File

@@ -217,6 +217,23 @@ namespace OpenSim.Region.OptionalModules.World.NPC
return false;
}
public bool Stand(UUID agentID, Scene scene)
{
lock (m_avatars)
{
if (m_avatars.ContainsKey(agentID))
{
ScenePresence sp;
scene.TryGetScenePresence(agentID, out sp);
sp.StandUp();
return true;
}
}
return false;
}
public bool DeleteNPC(UUID agentID, Scene scene)
{
lock (m_avatars)