Make Player1 shoot Bullet1
Make Player2 shoot Bullet2
Without using if condition for each player, as I will have many different players.
What is the expected result
Dynamic action that will shoot a Bullet based on active Player
What is the actual result
No bullet is shot
Related screenshots
Player has Fire bullet extension behavior.
Variable char of Bullets holds text of Player Name (Bullet1 has Player1 etc).
I also tried adding bullet name variable to the Player objects but no luck.
Can this also be done with object linking? And how? What is the better approach?
You can’t directly reference the bullet that was just fired.
A solution is to modify the Fire Bullets extension to include a parameter (pass a unique player ID) that assigns the unique player ID to each bullet when it’s created.