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.RegisterWeaponHelper Class Reference

Use this message to register weapon. This is an alternativeto the registerWeapon public function. More...

Inheritance diagram for GTA.NaturalMotion.RegisterWeaponHelper:
GTA.NaturalMotion.CustomHelper

Public Member Functions

 RegisterWeaponHelper (Ped ped)
 Creates a new Instance of the RegisterWeaponHelper for sending a RegisterWeapon 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

Hand Hand [set]
 
int LevelIndex [set]
 Level index of the weapon. More...
 
int ConstraintHandle [set]
 Pointer to the hand-gun constraint handle. More...
 
Vector3 GunToHandA [set]
 A vector of the gunToHand matrix. The gunToHandMatrix is the desired gunToHandMatrix in the aimingPose. (The gunToHandMatrix when pointGun starts can be different so will be blended to this desired one). More...
 
Vector3 GunToHandB [set]
 B vector of the gunToHand matrix. More...
 
Vector3 GunToHandC [set]
 C vector of the gunToHand matrix. More...
 
Vector3 GunToHandD [set]
 D vector of the gunToHand matrix. More...
 
Vector3 GunToMuzzleInGun [set]
 Gun center to muzzle expressed in gun co-ordinates. To get the line of sight/barrel of the gun. Assumption: the muzzle direction is always along the same primary axis of the gun. More...
 
Vector3 GunToButtInGun [set]
 Gun center to butt expressed in gun co-ordinates. The gun pivots around this point when aiming. 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...
 

Detailed Description

Use this message to register weapon. This is an alternativeto the registerWeapon public function.

Constructor & Destructor Documentation

◆ RegisterWeaponHelper()

GTA.NaturalMotion.RegisterWeaponHelper.RegisterWeaponHelper ( Ped  ped)

Creates a new Instance of the RegisterWeaponHelper for sending a RegisterWeapon Message to a given Ped.

Parameters
pedThe Ped to send the RegisterWeapon Message to.

Use this message to register weapon. This is an alternativeto the registerWeapon public function.

Property Documentation

◆ ConstraintHandle

int GTA.NaturalMotion.RegisterWeaponHelper.ConstraintHandle
set

Pointer to the hand-gun constraint handle.

Default value = -1. Min value = -1.

◆ GunToButtInGun

Vector3 GTA.NaturalMotion.RegisterWeaponHelper.GunToButtInGun
set

Gun center to butt expressed in gun co-ordinates. The gun pivots around this point when aiming.

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

◆ GunToHandA

Vector3 GTA.NaturalMotion.RegisterWeaponHelper.GunToHandA
set

A vector of the gunToHand matrix. The gunToHandMatrix is the desired gunToHandMatrix in the aimingPose. (The gunToHandMatrix when pointGun starts can be different so will be blended to this desired one).

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

◆ GunToHandB

Vector3 GTA.NaturalMotion.RegisterWeaponHelper.GunToHandB
set

B vector of the gunToHand matrix.

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

◆ GunToHandC

Vector3 GTA.NaturalMotion.RegisterWeaponHelper.GunToHandC
set

C vector of the gunToHand matrix.

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

◆ GunToHandD

Vector3 GTA.NaturalMotion.RegisterWeaponHelper.GunToHandD
set

D vector of the gunToHand matrix.

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

◆ GunToMuzzleInGun

Vector3 GTA.NaturalMotion.RegisterWeaponHelper.GunToMuzzleInGun
set

Gun center to muzzle expressed in gun co-ordinates. To get the line of sight/barrel of the gun. Assumption: the muzzle direction is always along the same primary axis of the gun.

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

◆ Hand

Hand GTA.NaturalMotion.RegisterWeaponHelper.Hand
set

Default value = Hand.Right.

◆ LevelIndex

int GTA.NaturalMotion.RegisterWeaponHelper.LevelIndex
set

Level index of the weapon.

Default value = -1. Min value = -1.


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