BulleTTime Posted May 6, 2009 Share Posted May 6, 2009 Anyone seen this before? i need to have a ped sit down on a chair, so i basicly need to disable collision to get it into the right position Any help will be thankfull Link to comment
Willy Posted May 6, 2009 Share Posted May 6, 2009 setElementCollisionsEnabled( ped, false) should do it then you'll need to set the position, including the z value, from experience it took a lot of trial and error to get it in the right place. Link to comment
BulleTTime Posted May 6, 2009 Author Share Posted May 6, 2009 this aint working for me, there's still collision. would u like to give an example? (that works) thanks Link to comment
Willy Posted May 6, 2009 Share Posted May 6, 2009 p_pilot = createPed( 61 , 0 , 0 , 0 ) setElementInterior(p_pilot,1,0.8457262635231, 35.5, 1199.555) setElementCollisionsEnabled( p_pilot, false ) setPedAnimation(p_pilot, "INT_OFFICE","OFF_Sit_Bored_Loop") this should set a pilot skin to be sitting in one of the pilot's chairs in the shamal interior. i have removed unnecessary stuff from my script, which shouldn't affect the outcome - and i know for a fact it works. Link to comment
BulleTTime Posted May 7, 2009 Author Share Posted May 7, 2009 Thanks, It seems that it did not work cause of something wierd. When i put the code into a Timer, it does work 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