..:D&G:.. Posted March 5, 2016 Share Posted March 5, 2016 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
OnlineCheater Posted March 5, 2016 Share Posted March 5, 2016 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. Link to comment
..:D&G:.. Posted March 5, 2016 Author Share Posted March 5, 2016 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
Captain Cody Posted March 5, 2016 Share Posted March 5, 2016 What are you using the change the vehicles dimension or interior. If possible you can add a function to it that gets the elements attached to the vehicle, and changes their dimension / interiors to. 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