ok i have look again at the script, there is a part that is been taken out.
this line is taken out: -- and pDist < 200 then
if ai_bot_state[e] == ai_state_findpatrolpath and ai_bot_pointtime[e] == 0 then
PathIndex = -1
PointIndex = 2
pClosest = 99999
for pa = 1, AIGetTotalPaths(), 1 do
for po = 1 , AIGetPathCountPoints(pa), 1 do
pDX = g_Entity[e]['x'] - AIPathGetPointX(pa,po)
pDY = g_Entity[e]['y'] - AIPathGetPointY(pa,po)
pDZ = g_Entity[e]['z'] - AIPathGetPointZ(pa,po)
pDist = math.sqrt(math.abs(pDX*pDX)+math.abs(pDY*pDY)+math.abs(pDZ*pDZ));
if pDist < pClosest then -- and pDist < 200 then
pClosest = pDist
PathIndex = pa
PointIndex = po
if i leave pClosest = 99999 , and put the part of -- and pDist < 200 then back in the script then all works fine.
For Lee.
Lee i just want to know if i can put -- and pDist < 200 then back in the module_combatcore.lua or will it make an problem somewhere else in the script. so far it looks like its working correctly if i put it back, then one of my problems is gone.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11