+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Toggled Indicator - NO E2's!

  1. #11
    Wirererer Uocjat's Avatar
    Join Date
    Aug 2007
    Location
    DK
    Posts
    122

    Default Re: Toggled Indicator - NO E2's!

    Quote Originally Posted by xljplx View Post
    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}
    Last edited by Uocjat; 02-13-2010 at 01:28 PM.
    <(^^<) /\(^^)/\ (>^^)> <(^^)>

  2. #12
    Wire Noob xljplx's Avatar
    Join Date
    Dec 2009
    Posts
    17

    Default Re: Toggled Indicator - NO E2's!

    Quote Originally Posted by Uocjat View Post
    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}
    didnt work

    heres code

    Code:
    @name Toggle Beam
    @inputs Ranger Reset Off
    @outputs Hud
    if (Ranger) {Hud = 1}
    
    if (Reset) {Hud = 0}
    if (Off) {Hud= 0}
    EDIT :

    Reset = numpad input (UNTOGGLE)
    Off = numpad input (TOGGLE)
    Last edited by xljplx; 02-13-2010 at 05:51 PM. Reason: added words lol.


    Owner of FlashBang Gaming

  3. #13
    Wire Noob atomic_cheese's Avatar
    Join Date
    Nov 2009
    Posts
    19

    Default Re: Toggled Indicator - NO E2's!

    Ummm, Memory - SR Latch.
    Numpad -> Reset input of latch
    Ranger -> "> 0" gate -> Set input of latch
    Latch -> HUD Indicator

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots