Hello. I am trying to make a Monitor that when it receives a hit it changes material and sends sparks. Now I have set up event hit properly and works like a charm from my projectile. But what is also happening is that its receiving hit events from my Character. How can I set it to not generate a hit event when the character touches it. I want the player to still push it around but only want effect to occur when my projectile hits it.
Thanks in advance
Hey, Blakey876.
If you still want the character to push it around, you still want it to generate hit events, right?
If you only want the monitor to ‘break’ when it collides with a projectile, I would recommend a setup like this.
As you can see, the floor (monitor for you) checks to see that it is colliding with a ‘Projectile’ class object (feel free to change this so that it can figure out if it collided with your bullet or not). If it is indeed colliding with a projectile object, then you can change the texture and create the sparks. I just changed the visibility of the ‘monitor’, but you would change texture and create sparks there. If the collision is with another (non-bullet) object, then nothing happens.
Regards,
Jonathan