Force Enemy Attack Preference

tightninja

Member
Is there a way to make an enemy perform a specific freespecial more often? I am curious how the logic works.
I am looking to have an boss do a projectile attack lets say 20% of the time when the player is a certain distance
I have anim block and a freespecial animation that "ducks" and attack. How can i control how often enemy blocks and ducks?
 
I suggest testing different range values for different animations, mainly in the XZ axis.

According to what I remember, the engine prioritizes the attack/freespecial animations by the number order from lower to higher. For example, freespecial have a higher chance than freespecial2 or freespecial3, the same between attack against attack2 and attack3, etc.

Another suggestion is to use a performattack script at the first frame of certain animations, and then you can add a rand() script to make it perform more often.

1795582017353.png

About blocks, I suggest testing these two properties.

1795581701998.png

1795581719071.png
 
Back
Top Bottom