[ANet] When does an entity get a global pointer?

Posted By: alibaba

[ANet] When does an entity get a global pointer? - 05/10/12 16:13

Does it get a global pointer after it is created on all clients, or after its created on the server?
Posted By: Dark_samurai

Re: [ANet] When does an entity get a global pointer? - 05/10/12 16:50

First of all, always wait for the global pointer before you do something with the global entity!

If you create an entity on the client, the entity is created there. Then it's created on the server that also creates the global pointer. After that, the global pointer is sent to all clients. Thus the creator receives the global pointer of the entity and the other clients additionally create the entity.
Posted By: alibaba

Re: [ANet] When does an entity get a global pointer? - 05/10/12 16:52

Of course, i´m always waiting for the global pointer wink

Okay thanks! laugh

EDIT: Is there a way to wait, until all clients has created an entity?
© 2024 lite-C Forums