CityRP Documentation Repository

core.plugins.animations.animationsapi.sh_boneanimlib

Bone Animations Library Created by William "JetBoom" Moodhe ([email protected] / www.noxiousnet.com) Because I wanted custom, dynamic animations. Give credit or reference if used in your creations.

Functions

SharedDeserialize(sIn) → tableSource ☍

Parameters

  • sInany

Returns

  1. table
SharedGetLuaAnimations() → tableSource ☍

Returns

  1. table
SharedRegisterLuaAnimation(sName, tInfo)Source ☍

Parameters

  • sNameany
  • tInfoany
SharedSerialize(tIn, bRaw) → stringSource ☍

Parameters

  • tInany
  • bRawany

Returns

  1. string

Fields

SharedINTERP_COSINESource ☍

Best compatability / quality balance.

SharedINTERP_CUBICSource ☍

Overall best quality blending but may cause animation frames to go 'over the top'.

SharedINTERP_DEFAULTSource ☍
SharedINTERP_LINEARSource ☍

Straight linear interp.

SharedTYPE_GESTURESource ☍

Gestures are keyframed animations that use the current position and angles of the bones. They play once and then stop automatically.

SharedTYPE_POSTURESource ☍

Postures are static animations that use the current position and angles of the bones. They stay that way until manually stopped. Use TimeToArrive if you want to have a posture lerp.

SharedTYPE_SEQUENCESource ☍

Sequences are keyframed animations that use the reference pose. They play forever until manually stopped. Use RestartFrame to specify a frame to go to if the animation ends (instead of frame 1).

SharedTYPE_STANCESource ☍

Stances are keyframed animations that use the current position and angles of the bones. They play forever until manually stopped. Use RestartFrame to specify a frame to go to if the animation ends (instead of frame 1).