Class RegisterWeaponHelper
Use this message to register weapon. This is an alternativeto the registerWeapon public function.
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class RegisterWeaponHelper : CustomHelper
Constructors
| Improve this Doc View SourceRegisterWeaponHelper(Ped)
Creates a new Instance of the RegisterWeaponHelper for sending a RegisterWeapon Message to a given Ped.
Declaration
public RegisterWeaponHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Remarks
Use this message to register weapon. This is an alternativeto the registerWeapon public function.
Properties
| Improve this Doc View SourceConstraintHandle
Pointer to the hand-gun constraint handle.
Declaration
public int ConstraintHandle { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = -1. Min value = -1.
GunToButtInGun
Gun center to butt expressed in gun co-ordinates. The gun pivots around this point when aiming.
Declaration
public Vector3 GunToButtInGun { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f).
GunToHandA
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).
Declaration
public Vector3 GunToHandA { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(1.0f, 0.0f, 0.0f). Min value = 0.0f.
GunToHandB
B vector of the gunToHand matrix.
Declaration
public Vector3 GunToHandB { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 1.0f, 0.0f). Min value = 0.0f.
GunToHandC
C vector of the gunToHand matrix.
Declaration
public Vector3 GunToHandC { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 1.0f). Min value = 0.0f.
GunToHandD
D vector of the gunToHand matrix.
Declaration
public Vector3 GunToHandD { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = 0.0f.
GunToMuzzleInGun
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.
Declaration
public Vector3 GunToMuzzleInGun { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f).
Hand
Declaration
public Hand Hand { set; }
Property Value
Type | Description |
---|---|
Hand |
Remarks
Default value = Right.
LevelIndex
Level index of the weapon.
Declaration
public int LevelIndex { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = -1. Min value = -1.