GetTriggerUnit-
DogEntrepreneur
- Reaction score
- 129
To be able to have a value, mui that I can use trought functions, what do I have to use?
Is it "private struct data"?
Is it "private struct data"?
MUI means that the same variable can't be used in different function calls. This rule generally applies when you have waits or timers in which the trigger could set the globals to a different value. Globals can be MUI if the function has no wait/timer, but if you aren't calling any other functions you should just use locals. If you need globals, structs are better for MUI.