From 08f7b85fe693a05490b46492d2f1bfcfa5940c11 Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 29 Jul 2021 15:19:02 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EChris.MultiNPC.lsl=E2=80=9C=20=C3=A4nd?= =?UTF-8?q?ern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Chris.MultiNPC.lsl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Chris.MultiNPC.lsl b/Chris.MultiNPC.lsl index 4b4bbf0..a5e0c22 100644 --- a/Chris.MultiNPC.lsl +++ b/Chris.MultiNPC.lsl @@ -305,7 +305,6 @@ doNextScriptStep() string currentPath = getDataEntryFromDataList(m_npcdata, "npc." + currentNPCSlot + ".path"); string currentState = getDataEntryFromDataList(m_npcdata, "npc." + currentNPCSlot + ".state"); string currentncname = getDataEntryFromDataList(m_npcdata, "npc." + currentNPCSlot + ".ncname"); - vector lastKnownPos = (vector)getDataEntryFromDataList(m_npcdata, "npc." + currentNPCSlot + ".position"); list pathLineData = llParseString2List(currentPath, [";"], []); string currentCommand = llList2String(pathLineData, currentLine); @@ -332,9 +331,6 @@ doNextScriptStep() if(llGetListLength(currentNPCDataList) == 0) hardReset("NPC not found"); - if(llVecDist(lastKnownPos, currentNPCPosition) <= 0.5) - hardReset("npc is stuck"); - if(llVecDist(currentNPCPosition, targetPosition) >= 1) continue; @@ -348,7 +344,6 @@ doNextScriptStep() } m_npcdata = setDataEntryInDataList(m_npcdata, "npc." + currentNPCSlot + ".line", currentLine); - m_npcdata = setDataEntryInDataList(m_npcdata, "npc." + currentNPCSlot + ".position", currentNPCPosition); switch(llList2String(lineCommandData, 0)) {