From a08c354a0737aa1c39e8abd1bc77446c5ace2997 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 28 Jun 2016 18:14:30 +0100 Subject: fix NPCs OS_NPC_OBJECT_GROUP option. group ID needs to be set during creation, before scenepresence.CompleteMovement, set tittle just after it. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 5b5c257..90b7494 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -2748,7 +2748,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api UUID x = module.CreateNPC(firstname, lastname, position, + UUID.Random(), ownerID, + groupTitle, + groupID, senseAsAgent, World, appearance); @@ -2756,9 +2759,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api ScenePresence sp; if (World.TryGetScenePresence(x, out sp)) { - sp.Grouptitle = groupTitle; - ((INPC)(sp.ControllingClient)).ActiveGroupId = groupID; - sp.SendAvatarDataToAllAgents(); } return new LSL_Key(x.ToString()); -- cgit v1.1