oz-chasetailgames
Member
Hello,
I am trying to trigger an increment on a quest variable every time the player character blocks with the shield. There is an event under the health component named "On Damage Event", however, I could not find something similar to this under the block item ability or the shield item components.
I tried to add an "on collision" script on the shield, however, the shield does not seem to trigger the on collision with the enemy sword. I noticed neither has a rigid body, but it did not trigger anything even when I added a kinematic rigid body to the shield. It does trigger with another type of object, but the enemy sword doesn't. I am guessing the shield collider script takes care of the that before the actual on collision takes place.
I will appreciate if you can suggest a workaround this, preferably through the event system.
Thank you.
I am trying to trigger an increment on a quest variable every time the player character blocks with the shield. There is an event under the health component named "On Damage Event", however, I could not find something similar to this under the block item ability or the shield item components.
I tried to add an "on collision" script on the shield, however, the shield does not seem to trigger the on collision with the enemy sword. I noticed neither has a rigid body, but it did not trigger anything even when I added a kinematic rigid body to the shield. It does trigger with another type of object, but the enemy sword doesn't. I am guessing the shield collider script takes care of the that before the actual on collision takes place.
I will appreciate if you can suggest a workaround this, preferably through the event system.
Thank you.