πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2023-11-28. It may be informal or outdated β€” anyone can edit this page to improve it. Original discussion

Sending an entity server-to-client for positioning

πŸ”Š SoundUpdated 2 days agoβ€’0 views
Server-to-client net doesn't guarantee the entity exists in the client realm (it may be outside PVS/rendering). Send it inside a ClientInitialized hook with net…

Why doesn't the client receive a net message carrying an entity, and how to fix

Server-to-client net doesn't guarantee the entity exists in the client realm (it may be outside PVS/rendering). Send it inside a ClientInitialized hook with net.send(ply), and on the client use net.readEntity(callback) so the function runs once the entity is valid - or send the entity index and call entity(id) yourself.

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.