I’m trying to toggle the collision on an object in my class blueprint based on a projectile hitting the object. What I want to have happen is the box object starts with collision on, I shoot a projectile at the box which toggles off its collision, but when I shoot a projectile at the box again, I want the collision to toggle back on and so and so forth.
What’s happening at the moment is, collision toggles off after the first projectile collides with the object. Additional projectiles do not toggle the object back on (I’m assuming because collision has been disabled so it is no longer detected).
Here’s how I currently have it set up:
I can see why this wouldn’t work (since collision is toggled off), but I can’t figure out a better solution to this problem. Any assistance is appreciated.