I kinda understand when OnTriggerStay every object in that trigger will be registered. But why when I apply damage meaning change their Variable only 1 get the change every millisecond, but nothing happens with other objects.
My schematic just simple like this:
OnTriggerStay->Change Variable 'HP' of Object 'Starting machine' Int Sub 1
It works for the first object that enters it and stays there. But not for every others object that also enters and stays there.
I had used the 'Find nearest object' node and used 'Add' It works but is also lead to another problem even that object has exit the Trigger it still on the selected data and damage still apply to it.
When I used the 'Clear selected data' node OnTriggerExit. And that leads back to the first problem but difference. Now instead of the first got damage applied the last object that entered it got damage applied.
Now it makes me feel like I don't understand how schematic machine work. But basically, I know how schematic and machine work. Just don't know how code really works. (= =!)