mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
implement osNpcGetRot() and osNpcSetRot()
Rotation works if done around the z axis. Anything else leads to random results.
This commit is contained in:
@@ -503,6 +503,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_OSSL_Functions.osNpcMoveToTarget(npc, position, options);
|
||||
}
|
||||
|
||||
public rotation osNpcGetRot(key npc)
|
||||
{
|
||||
return m_OSSL_Functions.osNpcGetRot(npc);
|
||||
}
|
||||
|
||||
public void osNpcSetRot(key npc, rotation rot)
|
||||
{
|
||||
m_OSSL_Functions.osNpcSetRot(npc, rot);
|
||||
}
|
||||
|
||||
public void osNpcStopMoveTo(LSL_Key npc)
|
||||
{
|
||||
m_OSSL_Functions.osNpcStopMoveTo(npc);
|
||||
|
||||
Reference in New Issue
Block a user