ID:168506
Oct 5 2005, 8:32 pm
|
|
I want to create NPC's that roam about the world freely. So far I use a infinit proc for each of them(Not a good idea) Which is why im posting here. I want help to figure out how to make the NPC's roam the world without that being called. Any ideas Enthusiastic Foruming HackzOrz?
|
Oct 5 2005, 8:35 pm
|
|
step_rand()?
|
In response to Sinoflife
|
|
That would make him walk once. I would need to call a proc that goes over and over and over again that makes him step every time. And plus stepping randomly doesnt realy look that smart does it. Even though until I feel like creating better. I am stuck using the step_rand() proc currently; Sucks to be me huh? well... sucks to be my lazyness anyway. Im going to have to break that.
|
In response to Lifehunter
|
|
while(1) is a way to loop.
mob/AI/proc/Walk() Other than that, if you don't want a looping proc, not sure. |
If you do not want an infinite loop for each of them, you could just one and make use of spawn. Such as:
proc This is probably not the best way to do it, but it should work, besides you not wanting to use step_rand(). |
In response to Kija
|
|
Yeah I figured I should use one proc. Thanks
|
In response to Lifehunter
|
|
proc This would be a bit better way to do it, since it is better set up. Also, for the delay before walking, it can better to have it slightly random so that it is not so predictable and wierd looking to see several NPCs all walk at the exact same time. Or: Wander() |