Detecting when an attribute changes

madmasseymadmassey Member Posts: 55
edited November -1 in Working with GS (Mac)
I'm looking for the easiest way to detect when an attribute changes for an if statement. I know I can create global attributes Game.Attribute and Game.AttributeCurrent (both equal to 0), then have a function that says something like "When Game.Attribute != Game.AttributeCurrent, Then Game.AttributeCurrent = Game.Attribute", and then whatever else I want.

Problem is, I have a ton of actors I'm gonna have to do this on, so it seems inefficient and a pain of a way to just find out if an attribute has changed.

Comments

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    The only real way to see what attributes are doing is by having an actor display text and have it display whatever attribute you're trying to track
  • frariofrario Member Posts: 164
    A timer checking every 0.01 seconds? I don't know the cpu impact tho..
Sign In or Register to comment.