„Chris.MultiNPC.lsl“ ändern

This commit is contained in:
Christopher 2021-07-29 15:19:02 +00:00
parent 7ec2c18f31
commit 08f7b85fe6
1 changed files with 0 additions and 5 deletions

View File

@ -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))
{