Make not_at_target stop when the target is reached even if the script
is not listening to at_targetavinationmerge
parent
31bc9c3ad3
commit
f5cbe56c56
|
@ -3926,10 +3926,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
scriptPosTarget target = m_targets[idx];
|
||||
if (Util.GetDistanceTo(target.targetPos, m_rootPart.GroupPosition) <= target.tolerance)
|
||||
{
|
||||
at_target = true;
|
||||
|
||||
// trigger at_target
|
||||
if (m_scriptListens_atTarget)
|
||||
{
|
||||
at_target = true;
|
||||
scriptPosTarget att = new scriptPosTarget();
|
||||
att.targetPos = target.targetPos;
|
||||
att.tolerance = target.tolerance;
|
||||
|
|
Loading…
Reference in New Issue