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.
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.
Removes the animation of a player who is spawning.
Removes the animation of a player who has died, however they died.

Methods

hooks:PlayerDisconnected(actor)

server packages/flow/lib/sh_animation.lua:579

Ends the animation of a leaving player, so that clients forget it and its finish callback runs.

Parameters

  • actor Player

hooks:PlayerInitialized(actor)

server packages/flow/lib/sh_animation.lua:566

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:619

Ends 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

hooks:PlayerSpawn(actor)

server packages/flow/lib/sh_animation.lua:609

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

hooks:PostPlayerDeath(victim)

server packages/flow/lib/sh_animation.lua:602

Removes the animation of a player who has died, however they died.

Parameters

  • victim Player

Defined in