Problem with game

Godot Version

Godot_V.4.3

Question

I have made an enemy. In the func _process i have enemy.look_at(player.global_position)
And i have a bullet that when it hits enemy it sets process false: enemy.set_process(false). But when i add two enemies into the level and when bullet hits one enemy, the other enemy process is false too, as same as the first.Any clues how do fix this?

I am not sure why its happening, but instead of setting the process false, can you try to define alive = true variable in the enemy script, so when bullet hits enemy, the alive variable will be false. Then in the process function, add this at the start:

if !alive: return