التخطي إلى المحتوى الرئيسي

بحث

Number display - hold last number

  • davidnorth100

    One way is to set a variable then wire its value into the text displayer.
    Another would be to wire into the set value of a value slider.

  • davidnorth100

    It occured to me that the value you're getting when the impact happens might revert to 0 afterwards, resetting the value in either of these methods. So you would want a check such that if it was zero you just set the value to its existing value instead. You can wire the output of the slider back into the input but through a node which is powered based on the output of a calculator doing the equality check. You'd have to handle both cases in this way.

  • davidnorth100

    Perhaps a zero is a valid value for you so you could instead take an output from the impact sensor and only set the new value if that is true.

    So you have the old value and the new value each going into a node. One node is powered by the impact true or whatever, the other by that through a NOT. Then add both of those node's outputs together. Since the unpowered node will output 0, you should get the correct output to then set your variable etc.

  • Jimmyjules153

    What David has suggested would defs work with some debugging - have you tried the signal manipulator too? It has some really cool properties about retaining signals that might be useful in this case as well :)

  • MrKlawUK

    Will have a look. Was trying to understand how big an impact is to help understand when to use to blow up the player. But at the moment i’m trying velocity instead.

الرجاء تسجيل الدخول لترك تعليق.