TIP: A Brilliant and Simple way to disable rules for debugging
synthesis
Member Posts: 1,693
If you are as frustrated as I was before discovering this in trying to isolate bugs...
Try this...Its simple...
1) Add a Game Attribute Boolean called "DISABLE_THIS_RULE" and set it to "FALSE" (unchecked). I used all caps to find it easily in my game attributes list.
2) Anywhere you wish to temporarily disable a rule...add a condition:
When attribute "DISABLE_THIS_RULE" is "TRUE".
This will force the rule to not run until the attribute is removed and aid dramatically in locating bugs! It will have the same affect as commenting out the code (for you programming compadres out there).
Try this...Its simple...
1) Add a Game Attribute Boolean called "DISABLE_THIS_RULE" and set it to "FALSE" (unchecked). I used all caps to find it easily in my game attributes list.
2) Anywhere you wish to temporarily disable a rule...add a condition:
When attribute "DISABLE_THIS_RULE" is "TRUE".
This will force the rule to not run until the attribute is removed and aid dramatically in locating bugs! It will have the same affect as commenting out the code (for you programming compadres out there).
Comments
It was helpful but what should I vote for?
very simple and elegant, good job. though this should be an engine feature. this is a good mainstay. it's actually similar to creating a pause controller...kudos
noodles...