(SOLVED)Spawn bullets with individual damage variable

How do I…

I like to spawn bullets with the behavior fire_bullet and set a dmg variable for each bullet, dependent on which player/turret spawned the bullet.

What is the expected result

Tower a fires bullets with each damage=10
Tower b fires bullets with each damage=15

What is the actual result

I can specify a lot of details regarding reloading, bullet speed and orientation, firerate. Yet i cant specify variables that are set at spawn for each bullet.
e.g. dmg or can_pierce_enemy

A bullet is selected only at the time of its creation, allowing you to assign a variable to it and bind that variable directly to that specific bullet.

Alternatively you need to create a count variable that count the bullets at creation , so each bullet gonna have eg. a different id variable…

1 Like

thanks, its that easy. just add bullet.var= value
cause the picking already knows you mean the created one in the event.

1 Like