Hook handlers of the animation library, registered as FLAnimations.
Summary
Methods
Ends the animation of a leaving player, so that clients forget it and its finish callback runs.
PlayerInitialized(actor)server
Shows a player who has finished loading the animations that were set before they joined and are still playing.
Ends the animation of a player who gets another model, which may not have the sequence.
PlayerSpawn(actor)server
Removes the animation of a player who is spawning.
PostPlayerDeath(victim)server
Removes the animation of a player who has died, however they died.
Methods
Ends the animation of a leaving player, so that clients forget it and its finish callback runs.
Parameters
- actor Player
Shows a player who has finished loading the animations that were set before they joined and are still playing.
Parameters
- actor Player
hooks:PlayerModelChanged(target, new_model, old_model)
server packages/flow/lib/sh_animation.lua:619Ends the animation of a player who gets another model, which may not have the sequence. The clients drop their own animations of the player when they are told about the new model.
Parameters
- target Player
- new_model String path of the new model
- old_model String path of the previous model
Removes the animation of a player who is spawning. Runs before the gamemode resets
the player, so an animation that a PostPlayerSpawn handler sets is kept.
Parameters
- actor Player
Removes the animation of a player who has died, however they died.
Parameters
- victim Player