@rogercooper said in Problem with foreach:
I was copying existing code. If I understand correctly, "attachTo" is arbitrary and "players" is required to be sure that the correct player is involved.
If "players" is used, then "attachTo" is ignored. I only use "players" when the trigger affects more than one player. But to each his own.
@rogercooper said in Problem with foreach:
@rogercooper SOLVED IT. I forgot the variableList tags.
Would have never guessed this! Happy you have figured it out.
Cheers...