Make not_at_target stop when the target is reached even if the script

is not listening to at_target
avinationmerge
Melanie 2012-06-07 19:01:33 +02:00
parent 31bc9c3ad3
commit f5cbe56c56
1 changed files with 2 additions and 1 deletions

View File

@ -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;