Unarmed Attack

Papazingo

New member
Hi,

I've followed the melee attack video and i've set up a body item for unarmed attacks, i have added collider's to the fists and added the hitboxes in the melee weapons properties, however no matter how many times i punch something with a health component, the health wont decrease. For some reason the collision doesn't registerr.

I have few questions:

  1. Does the weapon animation have to be triggered using the use ability?
  2. Do i have to use the use ability for weapons or is there an event that can trigger for weapon use?
  3. What triggers the OnHealthDamage event when the weapon animation plays, is it the colliders and melee weapon component or the Use ability?
  4. When i punch an object with a collider and health component, is it normal that my arms are going through the item?
  5. Can i trigger the OnHealthDamage event (or any event) using playmakers Execute event Action (probably a silly question, sorry)?
  6. Is it possible to not have the inventory component on the player? ( only because i get a error if i take it off )

Sorry for all the questions
Thanks Ant
 
Last edited:
1. Yes
2. You need to use the Use ability, but you can trigger it programmatically: https://opsive.com/support/documentation/ultimate-character-controller/artificial-intelligence. I think there is a Playmaker action for this as well.
3. The colliders on the melee weapon.
4. For first person view the arms will not go through the object, but they will for third person. You can setup a recoil animation which will stop this from happening (we don't have a recoil for the firsts though)
5. No, with playmaker you'd call Damage directly and not call the event: https://opsive.com/support/documentation/ultimate-character-controller/attributes/health/
6. Yes, but if you have items then you must have the inventory: https://opsive.com/support/document...controller/character/minimum-component-setup/
 
Top