Do it like that
-make a navmesh and assign 2 or 3 points (where the ped will go)
-make 3 collision sensors which will sense collision with these points
-these will be connected to steering actuators which will send him to adjacent points
That’s how it will be wandering here and there
And now for 2nd part
-make a point where ped will take cover during shootout
-when player will shoot it will send message to ped
-ped will recieve message and steer to the cover point
It should work…
I’ll upload blend file for you tomorrow…
It’s actually 12 midnight here
Ok, I actually did that once, but I found having fixed points to move to made the game REALLY easy. I want to be able to randomly pick a point and move to it
I already have the shooting down, I just need moving randomly
@BPR: I’ll try programming it, although I only used expression controllers before and not the console.
p.s I just used randoms connected to motion that would be overruled if it got close to the main character or the bullets causing it to track to the character or the cover respectively.
Ohh…you came very close to what I wanted!
But think about this: Wouldn’t it be strange to see a guy in a map moving like that?
Plus, it’s not actually “random”, although it sure does look like it…just press play a couple times and watch a minute of it, the cube will move the exact same way because the random sensor isn’t actually “random”
Thanks for the try, it almost worked
oh, and I actually might use this in another game I’m making after my current
Yeah I have noticed the same thing, but if you didm’t want it moving as consistently you could add delays (to the forward motion), but I don’t know how to make it more random.
I kind of glanced over the suggestions here, and figured id offer my two cents. but I guess its how “smart” you want yout wandering AI to be. To me, “wandering” means moving around aimlesslessley within a certain area unless it get triggered to attack. I feel that I have the samekind of AI. In my project, my AI spawns from a simple spawner,usally a bush or something and picks a random direcion to walk to. The AI wll also play a random animation as its doing whatever. The only correctins te AI will make is a change in direction or if it gets too far from its spawn…or if its aggroed enough to pursue the player…which it will still pursue only a certain distance from the spawner, and return to the spawn. I doont know much about nav meshes. But It depend on how smart you want your AI to be.
Yeah, that would be ideal for some situations. can you post a blend file of only the ai and nothing else? (use appending)
When I mean wandering, I mean moving without a cause, moving to random points on the map and randomly stopping to look around. I have all animations, just not code/logic