once you have changed the script then in the properties panel of the AI, change the View range to 3000 or more, and the view angle to 120, then try again.
If they are further then 3000 units away from you, they will be inactive.
But within that they should notice you and come at you. If all else fails and you need a few further away, set the always active field to yes. Dont get carried away with this or you will bug the engine down.
find this section in the script:
if PlayerDist < 600 and g_Entity[e]['plrvisible']==1 then
RotateToPlayer(e)
if PlayerDist < 80 and g_Entity[e]['plrvisible']==1 then
if ai_soldier_state[e]~="attack" then
SetAnimationSpeed(e,1.75)
if GetAnimationFrame(e)<attackstart[e] or GetAnimationFrame(e)>attackend[e] then
AIEntityStop(EntObjNo)
ai_soldier_state[e] = "attack"
CharacterControlLimbo(e)
randomattack=math.random(1,3)
if randomattack==1 then
attackstart[e]=2561
attackend[e]=2600
damageframestart[e]=2580
damageframeend[e]=2595
end
Change it to this:
if PlayerDist < 6000 and g_Entity[e]['plrvisible']==1 then
RotateToPlayer(e)
if PlayerDist < 80 and g_Entity[e]['plrvisible']==1 then
if ai_soldier_state[e]~="attack" then
SetAnimationSpeed(e,1.75)
if GetAnimationFrame(e)<attackstart[e] or GetAnimationFrame(e)>attackend[e] then
AIEntityStop(EntObjNo)
ai_soldier_state[e] = "attack"
CharacterControlLimbo(e)
randomattack=math.random(1,3)
if randomattack==1 then
attackstart[e]=2561
attackend[e]=2600
damageframestart[e]=2580
damageframeend[e]=2595
end
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit