maybe im not explaining myself good or you just dont understand what im trying to say.
So let me start over from scratch. when we had the previous ai_soldier script , you made a video where you created the ai_wander script, were the ai can wander by itself with out the need of the player to add way points and you dit it with adding this part of coding in to the ai_soldier script.
--wonderer code
if GetTimer(e)>4000 then
tempangle = math.random(6.28)
tempx = g_Entity[e]['x']+(math.cos(tempangle)*200);
tempz = g_Entity[e]['z']+(math.sin(tempangle)*200);
AIEntityGoToPosition(EntObjNo,tempx,tempz)
StartTimer(e)
end
so at the end of the video you had created the ai_wander script that when you place a soldier and you attach the script it wonder by itself with out the way points.
now that is why i was expecting the new ai_wander script to do just that, and it does not do it.
it just stand still and when i am in its cone view it starts to shoot me me.
please check it , and please fix it to do just that, or just add this script into the new script so that we have an ai that can wander on its own with no way points , and also shoot you if it see you. it would be awesome.
Thank you Lee.
?
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