skinwalker
Member
Hello,
I'd like to ask if there's any specific event that gets triggered when a Health component's any of the hit boxes get hit? I want to apply certain debuff when I hit enemy targets and heal friendly targets, which also leaves the question how should I deal with hitting friendly targets? What layer they should be on? Enemy layer for enemies and Character layer for friendlies? I'd prefer to not really depend on layers but rather have a script that has a string with a "TeamId" so I can swap teams easily at runtime.
All of these will have a Health component attached.
I'd like to ask if there's any specific event that gets triggered when a Health component's any of the hit boxes get hit? I want to apply certain debuff when I hit enemy targets and heal friendly targets, which also leaves the question how should I deal with hitting friendly targets? What layer they should be on? Enemy layer for enemies and Character layer for friendlies? I'd prefer to not really depend on layers but rather have a script that has a string with a "TeamId" so I can swap teams easily at runtime.
All of these will have a Health component attached.