OPX//77
opx_lib

Lib.Anim

Last updated on

Play an emote on the local player or an animation on another body.

No permission declared by the module.

Lib.Anim.Self

Plays an emote on the local player.

Lib.Anim.Self(animation, thirdPerson)

Parameters

  • animation: string
  • thirdPerson?: boolean — pull the camera out for the clip

Returns

  • Result — error invalid_animation
Example
Lib.Anim.Self('wave', true)

Lib.Anim.On

Plays an animation on another body (never the local player).

Lib.Anim.On(entity, animation)

Parameters

  • entity: number
  • animation: string

Returns

  • Result — errors invalid_entity, is_local_player, invalid_animation

On this page