Mantis 6063 osNpcTouch.

Allow NPCS to touch obects.
This commit is contained in:
Talun
2012-07-03 11:10:09 +01:00
committed by Justin Clark-Casey (justincc)
parent 43a2da9edb
commit 1b1f841c6a
6 changed files with 98 additions and 0 deletions

View File

@@ -305,6 +305,16 @@ namespace OpenSim.Region.OptionalModules.World.NPC
return false;
}
public bool Touch(UUID agentID, UUID objectID)
{
lock (m_avatars)
{
if (m_avatars.ContainsKey(agentID))
return m_avatars[agentID].Touch(objectID);
return false;
}
}
public UUID GetOwner(UUID agentID)
{
lock (m_avatars)