mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Return NPC instead of AGENT in the detect parameters for touch, collision and
sensor.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user