Kenix Posted May 6, 2012 Share Posted May 6, 2012 (edited) I started make script zombies, but i found a problem. Example Click for see I need know when zombie need turn left/right without waypoints and reach to player. Edited May 6, 2012 by Guest Link to comment
0 diegofkda Posted May 6, 2012 Share Posted May 6, 2012 processLineOfSight might help you. Link to comment
0 Kenix Posted May 6, 2012 Author Share Posted May 6, 2012 Yes i did make this via processLineOfSight. Link to comment
0 diegofkda Posted May 6, 2012 Share Posted May 6, 2012 Then I didn't get what was your problem. Link to comment
0 Kenix Posted May 6, 2012 Author Share Posted May 6, 2012 (edited) Click for see I need know when zombie need turn left/right without waypoints and reach to player. Edited May 6, 2012 by Guest Link to comment
0 diegofkda Posted May 6, 2012 Share Posted May 6, 2012 Ah, the ped just rotates. You shouldn't put the ped at that box, you should destroy one face to that, or at least make a bigger box. Too, you can make if the ped is in a box then make the ped look at where the player is. Link to comment
0 Kenix Posted May 6, 2012 Author Share Posted May 6, 2012 Ah, the ped just rotates. No, he moving and if ped see wall he will turn right or left. Link to comment
0 Cadu12 Posted May 6, 2012 Share Posted May 6, 2012 I tinhk he means zombie follow player and attack. Link to comment
0 Slifer Posted May 7, 2012 Share Posted May 7, 2012 He means that, if the Player is on the Other Side of the Wall the Zombie just ignores the Wall and is just running in it.But Kenix wants to make the Zombie to go Around the wall and then attack the player.. ( i don't know if it's even possible ) Link to comment
0 Tommeh Posted May 8, 2012 Share Posted May 8, 2012 Track the zombie movement, if it doesn't get any closer to the player in certain amount of time like 5 seconds check if the line of sight is clear https://wiki.multitheftauto.com/wiki/IsLineOfSightClear If it is not clear force the zombie to check which side is better to avoid the object from, see how much free space you got on each sides, left and right. In you picture there is more space on left so zombie goes there and gets around the box. Just force the zombie to go left untill it can get closer to the player again. Not the best method but should work I used the same method in my A.I. Snake to make it avoid itself. http://tg-mta.net/snakeyT/snake.html Link to comment
0 iChang Posted May 11, 2012 Share Posted May 11, 2012 Path nodes might be a solution. Link to comment
0 qaisjp Posted May 13, 2012 Share Posted May 13, 2012 Path nodes might be a solution. it's not a static movement, the zombies will follow the player. so doing this is impossible. Link to comment
0 iChang Posted May 15, 2012 Share Posted May 15, 2012 Path nodes might be a solution. it's not a static movement, the zombies will follow the player. so doing this is impossible. Ohh, who said that I was talking about the default zombies? Link to comment
Question
Kenix
I started make script zombies, but i found a problem.
Example
Click for see
I need know when zombie need turn left/right without waypoints and reach to player.
Edited by GuestLink to comment
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now