💬

Community answer

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

Sending entities to client before they're valid (net.readEntity callback)

🖼️ RenderingUpdated 2 days ago•0 views
Pass a callback to net.readEntity - Starfall queues it and runs the function with the valid entity once the client registers it. For entities sent before player…

How to change a property of an entity that is invalid when sent but valid afterwards

Pass a callback to net.readEntity - Starfall queues it and runs the function with the valid entity once the client registers it. For entities sent before players fully join, also send them in a ClientInitialized hook (store a list, send count + entities). PVS can invalidate entities again when players leave/re-enter visibility - if properties reset, re-apply them via a NetworkEntityCreated/OnEntityCreated-style hook checking a lookup table.

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.