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.DefineAttachedObjectHelper Class Reference
Inheritance diagram for GTA.NaturalMotion.DefineAttachedObjectHelper:
GTA.NaturalMotion.CustomHelper

Public Member Functions

 DefineAttachedObjectHelper (Ped ped)
 Creates a new Instance of the DefineAttachedObjectHelper for sending a DefineAttachedObject Message to a given Ped. More...
 
- Public Member Functions inherited from GTA.NaturalMotion.CustomHelper
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...
 

Properties

int PartIndex [set]
 Index of part to attach to. More...
 
float ObjectMass [set]
 Mass of the attached object. More...
 
Vector3 WorldPos [set]
 World position of attached object's center of mass. Must be updated each frame. More...
 

Additional Inherited Members

- Protected Member Functions inherited from GTA.NaturalMotion.CustomHelper
 CustomHelper (Ped target, string message)
 Creates a helper class for building Natural Motion messages to send to a given Ped. More...
 

Constructor & Destructor Documentation

◆ DefineAttachedObjectHelper()

GTA.NaturalMotion.DefineAttachedObjectHelper.DefineAttachedObjectHelper ( Ped  ped)

Creates a new Instance of the DefineAttachedObjectHelper for sending a DefineAttachedObject Message to a given Ped.

Parameters
pedThe Ped to send the DefineAttachedObject Message to.

Property Documentation

◆ ObjectMass

float GTA.NaturalMotion.DefineAttachedObjectHelper.ObjectMass
set

Mass of the attached object.

Default value = 0.0f. Min value = 0.0f.

◆ PartIndex

int GTA.NaturalMotion.DefineAttachedObjectHelper.PartIndex
set

Index of part to attach to.

Default value = -1. Min value = -1. Max value = 21.

◆ WorldPos

Vector3 GTA.NaturalMotion.DefineAttachedObjectHelper.WorldPos
set

World position of attached object's center of mass. Must be updated each frame.

Default value = Vector3(0.0f, 0.0f, 0.0f).


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