Skip to main content

onStateAnimationChange

This event is triggered when a player changes their state animation.

Parameters

NameTypeDescription
animnumberThe new animation state of the player

Example

engine.localPlayer.events.on('onStateAnimationChange', anim => {
console.log('new animation state', anim);
});

Available on: Client