I was able to make it randomly spawned by 50% chance. But here's the problem: I can't figure out how to despawn them. After they spawned, they just stay there until I defeat them. I want ALL my on-map enemy to despawn and reset after leaving the map.
I'm not very good at eventing but if anyone can help me I will greatly appreciate it. Thanks in advance.



