From 8a03c153d52302ec83342e93f67c99afd9de31ac Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 28 Jun 2012 20:29:37 +0200 Subject: Return NPC instead of AGENT in the detect parameters for touch, collision and sensor. --- OpenSim/Region/ScriptEngine/Shared/Helpers.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs index 7e7e278..5c9d30f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs @@ -197,6 +197,8 @@ namespace OpenSim.Region.ScriptEngine.Shared presence.Velocity.Z); Type = 0x01; // Avatar + if (presence.PresenceType == PresenceType.Npc) + Type = 0x20; if (presence.Velocity != Vector3.Zero) Type |= 0x02; // Active -- cgit v1.1