Jump to content

Move an object attached to a vehicle


dragonofdark

Recommended Posts

Hello,

First, I'm sorry for my damnit English and if I'm boring you...

Well, I would like to move an object attached to a DFT to an other point.

But I can't find the good way, I've tested "moveObject", but it doesn't work.

I tryed to make an other "attachElements" but the object move but without the movement (it's instantly moved).

Could anyone helps me to make it moves with movement ?

Thanks,

dragonofdark

Link to comment

Do you mean that you want to make an object which is attached to the vehicle to move to another offset and remain attached? If so, then you can try using setElementAttachedOffsets in onClientPreRender and you will also need to interpolate the position between the beginning and the end of the movement. To make this server-side, you will need to use triggerClientEvent or other kind of server-client communication to move the object for everyone.

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...