Detecting when an attribute changes
madmassey
Member Posts: 55
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.
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