Once again, I need help.. :ohdear:
I want the zombie to go to a random location, defined in the "WalkTo" Table.
[lua]
local Zombie = ents.Create("npc_fastzombie")
Zombie:SetPos( Vector( 900+math.random(-150,150), 97+math.random(-150,150), 175 ) )
Zombie:Spawn()
local WalkTo = {
Vector(-834, 733, 75),
Vector(-302, -596, 67),
Vector(-47, -264, 100),
Vector(337, -483, 80)
}
Zombie:SetLastPosition( WalkTo[math.random(1,4)] )
Zombie:SetSchedule( SCHED_FORCED_GO )
[/lua]
But the zombie just stand still where it spawns.. :argh:
So, why aint this working.. And how do I fix it? :geno:
Anyone? D:
probbably something with the zombie AI, trying changing class to citizen and check if it works
Tried, didnt work.
I just realized, Isnt it that NPCs CANT go very far?
Doesent it have be a short distance? :sigh:
[QUOTE=Tobba;21818191]probbably something with the zombie AI, trying changing class to citizen and check if it works[/QUOTE]
[QUOTE=Busymonkey;21834423][/QUOTE]
I have checked it... read what I posted above you..
[i]18 Hours Ago Last edited by Dragge; 2 Minutes Ago at 03:59PM.. [/i]
Nice try.
[QUOTE=Busymonkey;21834558][i]18 Hours Ago Last edited by Dragge; 2 Minutes Ago at 03:59PM.. [/i]
Nice try.[/QUOTE]
Well, I just added that little thing becasue I forgot to mention that I tried it. WELL SORRREEH..
And I just pointed it out.
[editline]15:41[/editline]
And you try to make me look like the fool.
[QUOTE=Busymonkey;21834856]And I just pointed it out.
[editline]15:41[/editline]
And you try to make me look like the fool.[/QUOTE]
Im sorry :ohdear:
:whip:
[editline]04:23PM[/editline]
Oh and on-topic, I have no idea.
Check on a shorter distance
[QUOTE=Tobba;21834995]Check on a shorter distance[/QUOTE]
It works on a shorter distance, But I want them to walk a longer distance without having like 10 moveto points
[QUOTE=Dragge;21835040]It works on a shorter distance, But I want them to walk a longer distance without having like 10 moveto points[/QUOTE]
Then make a SNPC
Sorry, you need to Log In to post a reply to this thread.