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

@@ -2362,6 +2362,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
}
public void osNpcStand(LSL_Key npc)
{
CheckThreatLevel(ThreatLevel.High, "osNpcStand");
INPCModule module = World.RequestModuleInterface<INPCModule>();
if (module != null)
{
module.Stand(new UUID(npc.m_string), World);
}
}
public void osNpcRemove(LSL_Key npc)
{
CheckThreatLevel(ThreatLevel.High, "osNpcRemove");