I have a weapon with a sphere collision placed on the floor so that when I pickup the weapon and this one is attached to the character’s back I want to destroy the Sphere Collision, however, it only destroy the sphere from the weapon that is on the floor and not the one from the character.
My character with four weapons on the floor with the Sphere Collision not hidden on the game:
I think what’s happening is that youre casting to the wrong instance of the weapon. Try a for each loop an the weapons and branch it to check if the array element is equals to the picked up weapon the cast to it and destroy the sphere. Lemme know if it works.
Was Zamiel Grimwalkers suggestion correct? If so please mark it.
I’m a bit of a nub but my guess is that the instance you are acting on isn’t the same instance as the actor on your back. In other words, unless you are translating that same actor for which you have destroyed the sphere to be on the players back, then you must be spawning a new actor, and this actor still contains the sphere you never destroyed. Either spawn a new actor that’s the same without the sphere, or move the current actor. Idk which is easiest.