
Originally Posted by
xljplx
simpler version please ?

think inorder to make it much simpler you'd have to use an expression
toggleing stuff without having it toggle off again is always tricky
Edit:
heres something you can copy and paste if ya like
just paste it into an E2 and slap it on a wall and wire your hud up to the output "light"
and the input "Button" to what ever you want to use to reset it with
Code:
@name Toggle Beam
@inputs Button
@outputs Light
@persist Dist
runOnTick(1)
Ranger = ranger(1000)
Dist = Ranger:distance()
if ($Dist != 0) {Light = 1}
if (Button == 1) {Light = 0}
Bookmarks