if an attribute is within 2 values, how to type this into the expression editor?

I have an actor that is supposed to spawn particles in different colors depending on a game.attribute called "SpeedLvl".
I want to make an attribute rule that says: IF "SpeedLvl" is 1 to 4, spawn particles, if not, don't spawn any particles.
There is going to be a lot of these rules because the balls color will go from white, green, yellow, orange, red.

I tried typing (1-4) and (1,4) but none of these work, how are you supposed to type it in to check if it's within those 2 values?

Comments

  • jeezzcakejeezzcake Member Posts: 144
    edited December 2014

    With a Rule

    When

    attribute SpeedLvl >=1 
    
    (hit the + sign to add another condition)
    
    attribute SpeedLvl <=4
    

    *(show particles)

  • dekisimkedekisimke Member Posts: 24

    @jeezzcake said:
    With a Rule

    When

    attribute SpeedLvl >=1

    (hit the + sign to add another condition)
    
    attribute SpeedLvl <=4
    

    *(show particles)

    CHEERS MATE! :D

Sign In or Register to comment.