Jump to content

[HELP] Attached object question


Recommended Posts

Hey, so I am attaching an object to a vehicle, and when the vehicle changes interior or dimension, the object doesn't follow the vehicle. I tried onClientPreRender but it drops my FPS to 1 or 2... So it is something wrong with it.

So, what can I do to make the attached object follow the vehicle when it changes interior or/and dimension?

Thank you.

Link to comment
Firstly I'd try to get object's interior and dimension after moving the vehicle to another interior/dimension, in order to check if it's in the same interior/dimension of the vehicle.

Duh.. that was the idea in the first place. But there is no event like "onElementDimensionChange". I don't want to have a timer for that, as it takes up the server's resources and also may cause lag or network trouble...

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...