Anim

Functions to control a player's animations, based heavily on nutscript's Anim system

Functions

ForceSequence(sequence, callback, time, noFreeze)

View source »

Plays an animation sequence on a player

Parameters

  • sequence string

    The sequence name

  • callback function optional

    Called when the animation is completed

  • time int optional

    How long until we force the sequence to stop

  • noFreeze boolean default: false

    If the player should not freeze when the sequence is playing

impulse.Anim.GetModelClass(model)

View source »

Gets the animation class of a specific model

Parameters

Returns

impulse.Anim.SetModelClass(model, class)

View source »

Sets the animation class of a specific model

Parameters

  • model string

    The model to set

  • class string

    The animation class

See Also

Tables

DefaultAnimClasses

View source »

A collection of default animation classes

Fields

  • citizen_male

  • citizen_female

  • metrocop

  • overwatch

  • vort

  • player

  • zombie

  • fastZombie