Browsing Wiremod's section
← Back to ACE
πŸ’¬

Community answer

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

Reading a wire entity port only once

πŸ”Œ WiremodUpdated 2 days agoβ€’0 views
wire.ports.Gun is read once when the chip runs - if nothing is wired yet the entity stays invalid until you wirelink and reload the chip. Read it inside the inp…

Does 'local gun = wire.ports.Gun' keep updating, and why is the entity invalid

wire.ports.Gun is read once when the chip runs - if nothing is wired yet the entity stays invalid until you wirelink and reload the chip. Read it inside the input hook instead of caching it, and note server-side variables aren't networked to clients automatically.

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.