How do I call Damage action with Force, Attacker and Position?

Wengang

New member
In the Behavior Tree, when I want the player die right away, I use the Invoke Method node to call Die method, and then use Damage node to reduce character's health to 0. I use Die first because I need to activate Ragdoll after the character died.

Screenshot 2022-06-08 at 13.41.09.png

Screenshot 2022-06-08 at 13.41.23.png

Screenshot 2022-06-08 at 13.41.30.png

But I think the Invoke Method (Die) node is unnecessary if I can pass Force, Attacker and Position to Damage node. I think there must be a way to do that because it is a public method in Health class.

Thanks!
 
Last edited:
The Die method will reduce the health the full amount so there's no need to use damage in that case.
 
Top