Sign in to follow this  
BulleTTime

how to sit down a ped (without having collision)

Recommended Posts

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

Share this post


Link to post

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.

Share this post


Link to post

this aint working for me, there's still collision.

would u like to give an example? (that works)

thanks

Share this post


Link to post
  
    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.

Share this post


Link to post

Thanks, It seems that it did not work cause of something wierd. When i put the code into a Timer, it does work :?:

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.