SHVDN  v3
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game. Developed by crosire https://github.com/crosire/scripthookvdotnet/
GTA.NaturalMotion.CustomHelper Class Reference

A helper class for building a

See also
GTA.NaturalMotion.Message

and sending it to a given Ped. More...

Inheritance diagram for GTA.NaturalMotion.CustomHelper:
GTA.NaturalMotion.ActivePoseHelper GTA.NaturalMotion.AnimPoseHelper GTA.NaturalMotion.ApplyBulletImpulseHelper GTA.NaturalMotion.ApplyImpulseHelper GTA.NaturalMotion.ArmsWindmillAdaptiveHelper GTA.NaturalMotion.ArmsWindmillHelper GTA.NaturalMotion.BalancerCollisionsReactionHelper GTA.NaturalMotion.BodyBalanceHelper GTA.NaturalMotion.BodyFoetalHelper GTA.NaturalMotion.BodyRelaxHelper GTA.NaturalMotion.BodyRollUpHelper GTA.NaturalMotion.BodyWritheHelper GTA.NaturalMotion.BraceForImpactHelper GTA.NaturalMotion.BuoyancyHelper GTA.NaturalMotion.CarriedHelper GTA.NaturalMotion.CatchFallHelper GTA.NaturalMotion.ConfigureBalanceHelper GTA.NaturalMotion.ConfigureBalanceResetHelper GTA.NaturalMotion.ConfigureBulletsExtraHelper GTA.NaturalMotion.ConfigureBulletsHelper GTA.NaturalMotion.ConfigureConstraintsHelper GTA.NaturalMotion.ConfigureLimitsHelper GTA.NaturalMotion.ConfigureSelfAvoidanceHelper GTA.NaturalMotion.ConfigureShotInjuredArmHelper GTA.NaturalMotion.ConfigureShotInjuredLegHelper GTA.NaturalMotion.ConfigureSoftLimitHelper GTA.NaturalMotion.DangleHelper GTA.NaturalMotion.DefineAttachedObjectHelper GTA.NaturalMotion.ElectrocuteHelper GTA.NaturalMotion.FallOverWallHelper GTA.NaturalMotion.FireWeaponHelper GTA.NaturalMotion.ForceLeanInDirectionHelper GTA.NaturalMotion.ForceLeanRandomHelper GTA.NaturalMotion.ForceLeanToPositionHelper GTA.NaturalMotion.ForceLeanTowardsObjectHelper GTA.NaturalMotion.ForceToBodyPartHelper GTA.NaturalMotion.GrabHelper GTA.NaturalMotion.HeadLookHelper GTA.NaturalMotion.HighFallHelper GTA.NaturalMotion.HipsLeanInDirectionHelper GTA.NaturalMotion.HipsLeanRandomHelper GTA.NaturalMotion.HipsLeanToPositionHelper GTA.NaturalMotion.HipsLeanTowardsObjectHelper GTA.NaturalMotion.IncomingTransformsHelper GTA.NaturalMotion.InjuredOnGroundHelper GTA.NaturalMotion.LeanInDirectionHelper GTA.NaturalMotion.LeanRandomHelper GTA.NaturalMotion.LeanToPositionHelper GTA.NaturalMotion.LeanTowardsObjectHelper GTA.NaturalMotion.OnFireHelper GTA.NaturalMotion.PedalLegsHelper GTA.NaturalMotion.PointArmHelper GTA.NaturalMotion.PointGunExtraHelper GTA.NaturalMotion.PointGunHelper GTA.NaturalMotion.RegisterWeaponHelper GTA.NaturalMotion.RollDownStairsHelper GTA.NaturalMotion.SetCharacterCollisionsHelper GTA.NaturalMotion.SetCharacterDampingHelper GTA.NaturalMotion.SetCharacterHealthHelper GTA.NaturalMotion.SetCharacterStrengthHelper GTA.NaturalMotion.SetCharacterUnderwaterHelper GTA.NaturalMotion.SetFallingReactionHelper GTA.NaturalMotion.SetFrictionScaleHelper GTA.NaturalMotion.SetMuscleStiffnessHelper GTA.NaturalMotion.SetStiffnessHelper GTA.NaturalMotion.SetWeaponModeHelper GTA.NaturalMotion.ShotConfigureArmsHelper GTA.NaturalMotion.ShotFallToKneesHelper GTA.NaturalMotion.ShotFromBehindHelper GTA.NaturalMotion.ShotHeadLookHelper GTA.NaturalMotion.ShotHelper GTA.NaturalMotion.ShotInGutsHelper GTA.NaturalMotion.ShotNewBulletHelper GTA.NaturalMotion.ShotRelaxHelper GTA.NaturalMotion.ShotShockSpinHelper GTA.NaturalMotion.ShotSnapHelper GTA.NaturalMotion.SmartFallHelper GTA.NaturalMotion.StaggerFallHelper GTA.NaturalMotion.StayUprightHelper GTA.NaturalMotion.StopAllBehaviorsHelper GTA.NaturalMotion.TeeterHelper GTA.NaturalMotion.UpperBodyFlinchHelper GTA.NaturalMotion.YankedHelper

Public Member Functions

void Start ()
 Starts this Natural Motion behavior on the Ped that will loop until manually aborted. More...
 
void Start (int duration)
 Starts this Natural Motion behavior on the Ped for a specified duration. More...
 
void Stop ()
 Stops this Natural Motion behavior on the Ped. More...
 
void SetArgument (string argName, bool value)
 Sets a Message argument to a bool value. More...
 
void SetArgument (string argName, int value)
 Sets a Message argument to a int value. More...
 
void SetArgument (string argName, float value)
 Sets a Message argument to a float value. More...
 
void SetArgument (string argName, string value)
 Sets a Message argument to a string value. More...
 
void SetArgument (string argName, Vector3 value)
 Sets a Message argument to a Vector3 value. More...
 
void ResetArguments ()
 Resets all arguments to their default values. More...
 
override string ToString ()
 Returns the internal message name. More...
 

Protected Member Functions

 CustomHelper (Ped target, string message)
 Creates a helper class for building Natural Motion messages to send to a given Ped. More...
 

Detailed Description

A helper class for building a

See also
GTA.NaturalMotion.Message

and sending it to a given Ped.

Constructor & Destructor Documentation

◆ CustomHelper()

GTA.NaturalMotion.CustomHelper.CustomHelper ( Ped  target,
string  message 
)
protected

Creates a helper class for building Natural Motion messages to send to a given Ped.

Parameters
targetThe Ped that the message will be applied to.
messageThe name of the natural motion message.

Member Function Documentation

◆ ResetArguments()

void GTA.NaturalMotion.CustomHelper.ResetArguments ( )

Resets all arguments to their default values.

◆ SetArgument() [1/5]

void GTA.NaturalMotion.CustomHelper.SetArgument ( string  argName,
bool  value 
)

Sets a Message argument to a bool value.

Parameters
argNameThe argument name.
valueThe value to set the argument to.

◆ SetArgument() [2/5]

void GTA.NaturalMotion.CustomHelper.SetArgument ( string  argName,
float  value 
)

Sets a Message argument to a float value.

Parameters
argNameThe argument name.
valueThe value to set the argument to.

◆ SetArgument() [3/5]

void GTA.NaturalMotion.CustomHelper.SetArgument ( string  argName,
int  value 
)

Sets a Message argument to a int value.

Parameters
argNameThe argument name.
valueThe value to set the argument to.

◆ SetArgument() [4/5]

void GTA.NaturalMotion.CustomHelper.SetArgument ( string  argName,
string  value 
)

Sets a Message argument to a string value.

Parameters
argNameThe argument name.
valueThe value to set the argument to.

◆ SetArgument() [5/5]

void GTA.NaturalMotion.CustomHelper.SetArgument ( string  argName,
Vector3  value 
)

Sets a Message argument to a Vector3 value.

Parameters
argNameThe argument name.
valueThe value to set the argument to.

◆ Start() [1/2]

void GTA.NaturalMotion.CustomHelper.Start ( )

Starts this Natural Motion behavior on the Ped that will loop until manually aborted.

◆ Start() [2/2]

void GTA.NaturalMotion.CustomHelper.Start ( int  duration)

Starts this Natural Motion behavior on the Ped for a specified duration.

Parameters
durationHow long to apply the behavior for (-1 for looped).

◆ Stop()

void GTA.NaturalMotion.CustomHelper.Stop ( )

Stops this Natural Motion behavior on the Ped.

◆ ToString()

override string GTA.NaturalMotion.CustomHelper.ToString ( )

Returns the internal message name.


The documentation for this class was generated from the following file: