ivan8065 Posted August 15, 2020 Share Posted August 15, 2020 Hello, I would like to use function setVehicleComponentVisible on my server for hiding some car parts but I want to set visibility of car part on some car for every player same, so could you help me synchronize it for all players please? Thank you. Link to comment
Investor Posted August 15, 2020 Share Posted August 15, 2020 The easy but inefficient way would be to use element data to sync the list of visible/hidden components. However it is preferable to use events: Have the server authoritatively control which components are visible and which aren't, by sending an event to all clients (or all clients within streaming proximity) regarding any changes in component visibility; and have the server also track these details to send the visiblities data to players connecting afterwards (or entering streaming range). 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