πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2022-12-11. It may be informal or outdated β€” anyone can edit this page to improve it. This topic changes between game versions β€” double-check before relying on it. Original discussion

Reliably networking an entity to all clients

πŸŒ™ LuaUpdated 2 days agoβ€’0 views
Clientside entities may not exist for clients outside the entity's PVS - there's a transmit flag to always send an entity but it may not be available in SF. Pra…

How to reliably network an entity to clients (PVS/transmit issues)

Clientside entities may not exist for clients outside the entity's PVS - there's a transmit flag to always send an entity but it may not be available in SF. Practical approach: send inside a ClientInitialized hook so each player gets it on join, use net.readEntity(callback) on the client, and keep a stored ID to re-check/re-request when the entity becomes invalid again.

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.