Class ShotNewBulletHelper
Send new wound information to the shot. Can cause shot to restart it's performance in part or in whole.
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class ShotNewBulletHelper : CustomHelper
Constructors
| Improve this Doc View SourceShotNewBulletHelper(Ped)
Creates a new Instance of the ShotNewBulletHelper for sending a ShotNewBullet Message to a given Ped.
Declaration
public ShotNewBulletHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Remarks
Send new wound information to the shot. Can cause shot to restart it's performance in part or in whole.
Properties
| Improve this Doc View SourceBodyPart
Part ID on the body where the bullet hit.
Declaration
public int BodyPart { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = 0. Min value = 0. Max value = 21.
BulletVel
Bullet velocity in world coordinates.
Declaration
public Vector3 BulletVel { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -2000.0f. Max value = 2000.0f.
HitPoint
Position of impact on character. Can be local or global depending on localHitPointInfo.
Declaration
public Vector3 HitPoint { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f).
LocalHitPointInfo
If true then normal and hitPoint should be supplied in local coordinates of bodyPart. If false then normal and hitPoint should be supplied in World coordinates.
Declaration
public bool LocalHitPointInfo { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = True.
Normal
Normal coming out of impact point on character. Can be local or global depending on localHitPointInfo.
Declaration
public Vector3 Normal { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, -1.0f). Min value = -1.0f. Max value = 1.0f.