mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
early code to allow scripts to force npcs not to fly when moving to target
this is to allow walking on prims. it will be up to the script writer to be sure that there is a continuous path. currently implemented in osNpcMoveToTarget(), but none of this is final.
This commit is contained in:
@@ -217,7 +217,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
return npcAvatar.AgentId;
|
||||
}
|
||||
|
||||
public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos)
|
||||
public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly)
|
||||
{
|
||||
lock (m_avatars)
|
||||
{
|
||||
@@ -229,7 +229,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
m_log.DebugFormat(
|
||||
"[NPC MODULE]: Moving {0} to {1} in {2}", sp.Name, pos, scene.RegionInfo.RegionName);
|
||||
|
||||
sp.MoveToTarget(pos);
|
||||
sp.MoveToTarget(pos, noFly);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user