Hello, How do i give a character bullet a lifespan regardless of whether it collides with an enemy or not? Thanks
Thanks for your input. Unfortunately this wont work as there isn't a specific area i need this to be executed.
Yes thanks! Thats one side of it, do you know a way i can now have the bullet life end before an enemy collides with it?
So basically I would like to have the character bullet have a life of around three seconds. This would mean that the bullet disappears after three seconds regardless of any collisions.
That means you have to make it take damage right after spawn. So either link an invisible enemy to the character in front of the bullet spawner. Or if you think the character might touch it at some point, put an enemy spawner right in front of the bullet spawner. That way Character bullet gets spawned and enemy bullet with 0 speed will basiclly kill each other but the character bullet has a death delay of 3 seconds. Another way to do it as I used in one of my games is if you know the distance where you want your bullet to stop, link an invisible enemy at for ex 1000 distance from character. Make it have 9999 life. That way your bullet spawns , goes forward and gets destroyed exactly at 1000 every time