and I had this error with trees because, let's say, the hp of all objects was subtracted simultaneously. I solved this problem by adding hp to objects when entering the interaction trigger, and everything started working. However, if you look at the objects through the editor, their hp is -1.