Class RegisterWeaponHelper
Use this message to register weapon. This is an alternativeto the registerWeapon public function.
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet2.dll
Syntax
public sealed class RegisterWeaponHelper : CustomHelper
Constructors
| Name | Description |
|---|---|
| RegisterWeaponHelper(Ped) | Creates a new Instance of the RegisterWeaponHelper for sending a RegisterWeapon Message to a given Ped. |
Properties
| Name | Description |
|---|---|
| ConstraintHandle | Pointer to the hand-gun constraint handle. |
| GunToButtInGun | Gun center to butt expressed in gun co-ordinates. The gun pivots around this point when aiming. |
| 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). |
| GunToHandB | B vector of the gunToHand matrix. |
| GunToHandC | C vector of the gunToHand matrix. |
| GunToHandD | D vector of the gunToHand matrix. |
| 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. |
| Hand | |
| LevelIndex | Level index of the weapon. |