Nikolay_888 Posted August 18, 2015 Share Posted August 18, 2015 Hello I want to warp ped into vehicle with animations. setPedControlState (ped, 'enter_exit', true) doesn't work, and I read that it is not a bug. So we need to use warpPedIntoVehicle and setPedAnimation. In this way, we need to calculate position of vehicle door very accurate (I think that for each car model there is different position), and with setPedControlState (ped, 'forwards', true) move ped to the door. But in the game, when we press control 'enter_exit', positions of vehicle door calculate automatically and player go to the door. Is there any way to use this for peds? Thank you Link to comment
Mr_Moose Posted August 18, 2015 Share Posted August 18, 2015 The problem might be that the function you described is client sided, yet it doesn't work on the localPlayer which makes it sort of useless in this case. You could try this (setControlState) one instead. It might not work on peds, but for player elements it certainly will. 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