Reading a wire entity port only once
π Wiremodβ’Updated 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.