Thomas_Nightfire Posted August 24, 2020 Share Posted August 24, 2020 Now I'm try to simulate ped do a carjack to the player with animations like in singleplayer, and I have a problem: when ped attached to vehicle, I found no way to play animation with updating position... ped plays animation in the same place and not moving, but when call 'setPedAnimation', I've set 'updatePosition' to true, but no effect.. May be someone tried to simulate SP ped enter/jack vehicle? May be someone made that already in resource? Link to comment
nikitafloy Posted August 25, 2020 Share Posted August 25, 2020 @Thomas_Nightfire i would check how work animation when u attach ped to Element And look another boolean-params setPedAnimation function, u should to try different value Link to comment
Thomas_Nightfire Posted August 25, 2020 Author Share Posted August 25, 2020 Unfortunately, these params don't change anything... I've tried. 22 minutes ago, nikitafloy said: @Thomas_Nightfire i would check how work animation when u attach ped to Element And look another boolean-params setPedAnimation function, u should to try different value Unfortunately, these params don't change anything... I've tried. Link to comment
Zorgman Posted August 27, 2020 Share Posted August 27, 2020 Attaching the ped to an element will effectively keep it in the designated place, the 'updatePosition' parameter will not work. I haven't seen yet a solution to this (peds jacking cars or even peds entering a vehicle using the normal mechanics); I think it can be done, though likely would not look as good as in SP, since cutting some corners would be necessary. You need to calculate the positions required, make sure the vehicle is stationary (maybe even freeze it for a short while), make the ped walk to the car door and play the animation, you open the car door by script (on a loop if you want to see actual motion and not simply 'snap' it open), warp out the driver, move it in the right position and have it play the animation, finally warping the hijacker inside. 1 Link to comment
Discord Moderators Zango Posted August 27, 2020 Discord Moderators Share Posted August 27, 2020 It's worth mentioning you can carjack a dead ped, if you are looking to make a workaround. However it's almost impossible to create a workaround that looks good and works well. I've considered a lot of approaches for a workaround, but it's ridiculous for such a basic mechanic that should just work. Better to focus our efforts on fixing it in MTA. 1 1 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