What I want to do, is to create a bullet, and then set its team and damage. The team should later be used to determine who the bullet can hit.
What seems to actually happen is that the team and damage variable on the scene gets changed by whoever last fired a bullet (the friendly and enemy units have the same bullet creation logic as the player).
I don’t understand why, as I understand the GDevelop documentation, when you create an object and then set variables, GDevelop should limit the scope to the instance you just created.
OK I’ve tried firing a bullet into nowhere and tracking its variable in the debugger. It is not changing teams. So the issue is in the damage event. I’ve tried making it 2 separate events with no subevents: