Skip to content

server.modules.AnimPlayer

Mahatma Kollu edited this page Oct 19, 2021 · 2 revisions

Module: server/modules/AnimPlayer

Table of contents

Functions

Functions

playAnim

playAnim(character, animation, info?): AnimationTrack

A utility function which plays an animation on a player's character.

Parameters

Name Type Description
character undefined | Player | Model either a player, a player's character, or undefined. if it's a player it will conver it to the player's character. if it's undefined it will error.
animation string | number either a string or number which is converted into an aniamtion instance
info? Object info that will modify how the animation will be played
info.Fade? number -
info.Looped? boolean -

Returns

AnimationTrack

Defined in

src/server/modules/AnimPlayer.ts:9

Clone this wiki locally