Re: Functions in GPC Code

Thanks Rabid! I was wondering if toggles could be condensed as there's typically a lot of duplication. The code is doing my head in, gimme a couple of hours to wrap my head around it
Any thoughts on how to condense RumbleNotifier and DoubleRumbleNotifier (and potentially more) into one combo or function?
I'm thinking bit operations could be used, or pulling the rumble loop into a separate combo, then using combo_stop, wait (RumbleTimer), combo_stop.
A toggle (or flags) could use e.g RumbleTimer = 1000 for TRUE and RumbleTimer = 2000 for FALSE. Or RumbleTimer = 1000, 2000, 3000 etc to correspond with bit flags.
Looking forward to your rapid fire magic!

Any thoughts on how to condense RumbleNotifier and DoubleRumbleNotifier (and potentially more) into one combo or function?
I'm thinking bit operations could be used, or pulling the rumble loop into a separate combo, then using combo_stop, wait (RumbleTimer), combo_stop.
A toggle (or flags) could use e.g RumbleTimer = 1000 for TRUE and RumbleTimer = 2000 for FALSE. Or RumbleTimer = 1000, 2000, 3000 etc to correspond with bit flags.
Looking forward to your rapid fire magic!