mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Implement osNpcGetOwner(key npc):key. This returns the owner for an 'owned' NPC, the npc's own key for an 'unowned' NPC and NULL_KEY is the input key was not an npc.
llGetOwnerKey() could also be extended but this does not allow one to distinguish between an unowned NPC and some other result (e.g. 'no such object' if NULL_KEY is the return. Also, any future extensions to LSL functions by Linden Lab are unpredictable and OpenSim-specific extensions could clash.
This commit is contained in:
@@ -134,4 +134,4 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
/// <returns>UUID of owner if the NPC exists, UUID.Zero if there was no such agent, the agent is unowned or the agent was not an NPC</returns>
|
||||
UUID GetOwner(UUID agentID);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user