void ProceduralHitReaction( DamageInfo info, float damageScale, Vector3 force )

robot_2Generated
code_blocksInput

Description

The ProceduralHitReaction method is part of the CitizenAnimationHelper class within the Sandbox.Citizen namespace. This method is used to trigger a procedural hit reaction animation on a citizen character. It takes into account the damage information, a scaling factor for the damage, and the force vector applied to the character.

Usage

To use the ProceduralHitReaction method, you need to have an instance of the CitizenAnimationHelper class. You can then call this method by passing the required parameters:

  • info: An instance of DamageInfo that contains details about the damage inflicted.
  • damageScale: A float value that scales the damage effect.
  • force: A Vector3 representing the force applied to the character.

Example

// Assuming 'animationHelper' is an instance of CitizenAnimationHelper
DamageInfo damageInfo = new DamageInfo();
float damageScale = 1.0f;
Vector3 force = new Vector3(0, 0, 10);

animationHelper.ProceduralHitReaction(damageInfo, damageScale, force);