I want some object example ( weapon) shoot at enemy and if it kill 3 enemies the object will get extra life and if the object get shoot the life will decrease.
for example the object shoot 3 enemies it get 1 extra life and shoot other 3 then the life will be 2 , and if someone shoot the object the life will be 1 and if it reach 0 it will be destroyed
The object is the player
Yes, it shoot towards the mouse position and , lets say for example the object is cube(player) and it shoot small spheres towards another cube(Enemy player) if it touch the other cube it will desroyed but it need 2 more kills to get extra life and in case it get extra life and someone shoot it the life will instantly decrease