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

Sign In or Register to comment.