Lezlike Posted October 5, 2020 Share Posted October 5, 2020 HELP How "onVehicleEnter" or "onVehicleEnter" and "onVehicleExit" or "onClientVehicleExit" works like the animation, ped automatically search the front left door, then open anim... If I press the F button which anims are activated and how this function work ? I want to create a script, when I close enough to one ped(createPed) then ped automatically finds the nearestdoor, and enter the vehicle... I already have some functions my ped can detect cars, can find the nearest door, after that I calculate the rotation of the ped, where the ped have to walk (setPedAnimation)...if close enough (getDistanceBetweenPoints3D) I stop the anim, after that I get the cars z rotation and set the same to ped .... anim(CAR_open_RHS) ... open door(setVehicleDoorOpenRatio) ... anim(CAR_getin_RHS) ... warpPedIntoVehicle ... close door(setVehicleDoorOpenRatio) ... anim()...etc But some of the anims are not work well, ped vibrates during anims... I dont know the correct positions where to start anim and rotations Sooo if anyone understand this and can HELP I'd be grateful for it 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