I created a Script State Node action for a “dodge,” but how can I make the character become invincible for a short duration while passing through enemies during this “dodge” action? I can’t seem to find the corresponding other_actions to add to complete this action ![]()
To achieve avoidance:
- Avoid colliding with enemies
- Avoid taking damage
I believe the most versatile approach is to use the “Change Property” action.
-
Handling “Avoid colliding with enemies”:
In the avoidance state, select the GameObject and modify the CollisionLayer and CollisionMask. Configure them so they do not match the enemies’ mask/layer.
In the state that ends the avoidance, revert these settings. -
Handling “Avoid taking damage”:
In the avoidance state, select the HitCollision and enable Disabled. Similarly, in the state that ends the avoidance, disable this setting.
OK, thank you very much ![]()