Hook handlers of the animation library, registered as FLAnimations.
Summary
Methods
Applies the animation that the server has set for a player once the player comes into view, in case their model was not available when the animation was announced.
Drops the animation of a player who gets another model, since its sequence number belongs to the previous one.
Methods
Applies the animation that the server has set for a player once the player comes into view, in case their model was not available when the animation was announced.
Parameters
- entity Entity entity that starts or stops being networked to this client
- should_transmit Boolean true if it starts being networked
hooks:PlayerModelChanged(target, new_model, old_model)
client packages/flow/lib/sh_animation.lua:694Drops the animation of a player who gets another model, since its sequence number belongs to the previous one. If the server still wants the player animated, which is the case when it has set the animation after changing the model, the animation is applied again to the new model.
Parameters
- target Player the player whose model changes
- new_model String path of the new model
- old_model String path of the previous model