net.readEntity with a validity callback
🧠 Logic•Updated 2 days ago•0 views
Use net.writeEntity on send and net.readEntity(cb) on receive - the callback fires once the entity becomes valid clientside, avoiding nil-entity races.
How to receive an entity over net and use it once valid
Use net.writeEntity on send and net.readEntity(cb) on receive - the callback fires once the entity becomes valid clientside, avoiding nil-entity races.