SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
83 stars 17 forks source link

“Startle”animation not playing #4410

Closed hyjhkt closed 1 month ago

hyjhkt commented 1 month ago

I have a long-range attacking animal When my animation is named "Startle" and there is no "Startle-Anim_Variants 1" in the dat, the animal does not play the Startle action before starting the attack, from the "Walk" or "Run" action to the "Attack" action. When my animation is named "Startle-0" and there is "Startle-Anim_Variants 1" in the dat, the animal does not play the Startle action before starting the attack.

MoltonMontro commented 1 month ago

Could you perhaps post a screenshot of your asset in Unity, and copy-paste the contents of your .dat file?

hyjhkt commented 1 month ago

@MoltonMontro @SDGNelson 0135OMJ1@WMARQL~N X A@S G_X9(QK`DNS`US_N%1VD5H 5ALE}A2{T$2`M`NDTUJFF_L

SDGNelson commented 1 month ago

It sounds like it probably starts attacking immediately. Is that correct? Attack currently takes priority over the startle animation, and since it has a long range it would be able to attack as soon as it detects the player.

hyjhkt commented 1 month ago

@SDGNelson Is there a way to solve it

SDGNelson commented 1 month ago

Not at the moment, sorry. Animal improvements are currently low priority (not in the top 5 voted for this year) so I'm not sure when I'll next be working on them.