••Help!

OlsenOlsen Member Posts: 30
edited November -1 in Working with GS (Mac)
What do i do if I want something to happend if an attribute is equal to "bla bla" for 2 seconds or more?

is it like this?

Timer
For 2 seconds

Rule
Attribute "sdpokasd" is equal to "bla bla"

and then the thing I want it to happend

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    put the timer in the rule.

    if attribute = ??
    ----timer for 2 seconds
    -------do blah
  • OlsenOlsen Member Posts: 30
    Tried that now, it worked quite well. That made the thing I wanted to happend, happen instantly when the attribute became "blah". And I only want it to happend if the attribute is blah for two seconds.
  • OlsenOlsen Member Posts: 30
    Never mind, found the solution!

    -Rule:
    When attribute is bla:

    -Timer:
    After 2 seconds:

    -Rule (this double checks if the rule is still equal to the same after the 2 seconds)
    When attrubute is bla:

    Do what i wanted it to do.

    Thanks anyway :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    swith the for to after in the timer, and make sure run to completion is NOT checked
  • OlsenOlsen Member Posts: 30
    yeah, that's exactly what I just did, after I noticed I didn't need the rule after the timer to see if the attribute is stil "blah". I just made the run to completion box unchecked.
Sign In or Register to comment.