When i make the player attack, it spawns a hit detection box in front of him, at a certain frame. When the attack animation is over, i used the command destroy object on the box. Now this seem to work pretty well. Now i did the same with an enemy. They got their own hit detection box, it spawns just fine, but when it comes to destroy the box after the animation, it just fails.
Is there anything i'm missing about destroying an object? Why is it working on one character but not on the other?