Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wanting to know how to do stuff like items. #51

Open
ghost opened this issue Aug 13, 2017 · 1 comment
Open

Wanting to know how to do stuff like items. #51

ghost opened this issue Aug 13, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 13, 2017

In my own game that i'm working on, there are items like keys. I want the server and clients sync the key object so when it is destroyed on any client or on the server, it would tell all clients and server to destroy it. I have already tried a variable but it ends up making it where the 1 client would destroy the key but on the server and other clients it wouldn't destroy. Unless i destroy the key with the server, then the key gets destroyed on the clients. I'm using a system to spawn the key when the game realizes that it is the server. This might have to do with the server being able to destroy it and it works but it doesn't when the clients destroy it. The server syncs the key's position. I have tried to do mp_unsync() but all i get is "Data structure with index does not exist." error.

@The-any-Key
Copy link
Collaborator

Please check the tutorials.
I think you try change a remote object. That is not possible. You need to send a RPC message to the owner of a synced object and make it destroy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant