„Chris.MultiNPC.lsl“ ändern
This commit is contained in:
parent
7ec2c18f31
commit
08f7b85fe6
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue