šŸ’¬

Community answer

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

Shared realm and SERVER CLIENT globals

šŸ–„ļø ServerUpdated 2 days ago•0 views
Yes, shared runs on both realms. There are automatic global variables SERVER and CLIENT that are only true when running in their specified environment. Things l…

Does "shared" mean server + client, and how do you tell whether code is running client-side or server-side?

Yes, shared runs on both realms. There are automatic global variables SERVER and CLIENT that are only true when running in their specified environment. Things like wire I/O are serverside only, so to send e.g. a wire button's value to the client you need to network it.

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.