ForceViewmodelAnimation( weaponName, animName )


Module: Client
SP Only

Summary:

Forces the viewmodel to play the nightvision pulldown animation for the specified weapon.



Call this on:

A Player



Example:

level.player ForceViewmodelAnimation( "facemask", "reload" );



Required Args:

  • 1 : <weaponName>: Name of the weapon to play an animation from.
  • 2 : <animName>: Name of the animation to play. Can be "reload", "fire", "nvg_up", or "nvg_down".