diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 9c32029..63c882d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2209,7 +2209,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2209 | if (module != null) | 2209 | if (module != null) |
2210 | { | 2210 | { |
2211 | Vector3 pos = new Vector3((float) position.x, (float) position.y, (float) position.z); | 2211 | Vector3 pos = new Vector3((float) position.x, (float) position.y, (float) position.z); |
2212 | module.MoveToTarget(new UUID(npc.m_string), World, pos); | 2212 | module.MoveToTarget(new UUID(npc.m_string), World, pos, false); |
2213 | } | ||
2214 | } | ||
2215 | |||
2216 | public void osNpcMoveToTarget(LSL_Key npc, LSL_Vector position, int noFly) | ||
2217 | { | ||
2218 | CheckThreatLevel(ThreatLevel.High, "osNpcMoveToTarget"); | ||
2219 | |||
2220 | INPCModule module = World.RequestModuleInterface<INPCModule>(); | ||
2221 | if (module != null) | ||
2222 | { | ||
2223 | Vector3 pos = new Vector3((float) position.x, (float) position.y, (float) position.z); | ||
2224 | module.MoveToTarget(new UUID(npc.m_string), World, pos, noFly != 0); | ||
2213 | } | 2225 | } |
2214 | } | 2226 | } |
2215 | 2227 | ||