I made this simple test using Line of Sight, I want it to affect on each one of the instances of the enemy.
The LineOfSight Range = 64, Cone of view 360 so it will be easy to test.
I added a visual way to TEST this: Frame 0 = Eye is Closed, Frame 1 = Eye is Open.
What am I missing on the "FOR EACH" code ?
I think I don't use the "FOR EACH" the right way, but.. I thought it should be as simple as I did.
Can you please EXPLAIN what I am I doing wrong on the code and how to fix it using "FOR EACH" ?
I guess even after reading about 'FOR' and 'FOR EACH' loops, I still don't get it... (I'm still new to this)
Yes, it WORKS with 'FOR' loop, but it made more sense for me that "FOR EACH" will work because of EACH instance of the enemy, but I'm now more confused than ever.
Also, it works without ANY of the loops, just the two conditions. so if I understand correctly most actions works by default "per instance" or "for each one of the instances" but I'm still very confused and would love to understand based on this example if possible about 'FOR' and 'FOR EACH' please?
I'll appreciate if someone will be kind enough to explain this to me based on THIS example I post above (with the GIF). Thanks ahead!