Jumba' Posted January 21, 2010 Share Posted January 21, 2010 I was just wondering if there were any scripts, or if anyone could give me an idea on how to make a ped follow a precise path in a vehicle. I tried using "setPedControlState" but that's not really precise as the weather changes the handling, so the path wouldnt be an exact replica. I need it for a film I'm making and I needed some peds driving pre-set routes. Link to comment
Jumba' Posted January 21, 2010 Author Share Posted January 21, 2010 I was just wondering if there were any scripts, or if anyone could give me an idea on how to make a ped follow a precise path in a vehicle. I tried using "setPedControlState" but that's not really precise as the weather changes the handling, so the path wouldnt be an exact replica. I need it for a film I'm making and I needed some peds driving pre-set routes. Link to comment
eAi Posted January 22, 2010 Share Posted January 22, 2010 setPedControlState will work - you'll probably have to just be more intelligent about it - make your peds try to drive towards the line - if they're too far to the right of it, they should steer left and vice versa. This is a standard way to do driving AI (and how GTA's own AI works). Of course, there's lots of more complex situations to cope with - avoiding obstacles, getting out of situations where the vehicle is stuck, coping with facing the wrong direction entirely - etc. But, if you've got the ped in the vehicle close to the path you want them to follow, just making them driving towards a point that moves along the path should work fine. Link to comment
eAi Posted January 22, 2010 Share Posted January 22, 2010 setPedControlState will work - you'll probably have to just be more intelligent about it - make your peds try to drive towards the line - if they're too far to the right of it, they should steer left and vice versa. This is a standard way to do driving AI (and how GTA's own AI works). Of course, there's lots of more complex situations to cope with - avoiding obstacles, getting out of situations where the vehicle is stuck, coping with facing the wrong direction entirely - etc. But, if you've got the ped in the vehicle close to the path you want them to follow, just making them driving towards a point that moves along the path should work fine. Link to comment
subenji99 Posted January 22, 2010 Share Posted January 22, 2010 If you are making films in SA, unless you are specifically showing off MTA features, you may be better off with this mod: http://www.gtaforums.com/index.php?showtopic=239410 It will certainly give you much better control over filming peds and vehicles along pre-pathed routes. Of course, the perfect solution may be to mix the 2 together, using footage from both MTA and this mod for different scenes depending on your goals. (Don't mis-understand here, MTA is certainly capable, but when an alternative is available, why make things harder for yourself? ) Link to comment
subenji99 Posted January 22, 2010 Share Posted January 22, 2010 If you are making films in SA, unless you are specifically showing off MTA features, you may be better off with this mod: http://www.gtaforums.com/index.php?showtopic=239410 It will certainly give you much better control over filming peds and vehicles along pre-pathed routes. Of course, the perfect solution may be to mix the 2 together, using footage from both MTA and this mod for different scenes depending on your goals. (Don't mis-understand here, MTA is certainly capable, but when an alternative is available, why make things harder for yourself? ) Link to comment
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