💬

Community answer

Collected from the ACE community Discord archive around 2023-10-01. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Networking entities stored inside tables

🌙 LuaUpdated 2 days ago•0 views
net.readEntity gives you the entity or nil via callback - you can't put entities inside writeTable. Either split into parallel arrays (one writeEntity stream + …

How to net an array of entities (inside data structures) when entity order isn't guaranteed

net.readEntity gives you the entity or nil via callback - you can't put entities inside writeTable. Either split into parallel arrays (one writeEntity stream + one writeTable) or use readEntity callbacks and check proj:isValid() since the callback can fire more than once / entity may arrive later.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.