Class ApplyBulletImpulseHelper
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class ApplyBulletImpulseHelper : CustomHelper
Constructors
| Improve this Doc View SourceApplyBulletImpulseHelper(Ped)
Creates a new Instance of the ApplyBulletImpulseHelper for sending a ApplyBulletImpulse Message to a given Ped.
Declaration
public ApplyBulletImpulseHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Properties
| Improve this Doc View SourceEqualizeAmount
0 means straight impulse, 1 means multiply by the mass (change in velocity).
Declaration
public float EqualizeAmount { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.
ExtraShare
If not 0.0 then have an extra bullet applied to spine0 (approximates the COM). Uses setup from configureBulletsExtra. 0-1 shared 0.0 = no extra bullet, 0.5 = impulse split equally between extra and bullet, 1.0 only extra bullet. LT 0.0 then bullet + scaled extra bullet. Eg.-0.5 = bullet + 0.5 impulse extra bullet.
Declaration
public float ExtraShare { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = -2.0f. Max value = 1.0f.
HitPoint
Optional point on part where hit.
Declaration
public Vector3 HitPoint { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f).
Impulse
Impulse vector (impulse is change in momentum).
Declaration
public Vector3 Impulse { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -1000.0f. Max value = 1000.0f.
LocalHitPointInfo
True = hitPoint is in local coordinates of bodyPart, false = hit point is in world coordinates.
Declaration
public bool LocalHitPointInfo { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
PartIndex
Index of part being hit.
Declaration
public int PartIndex { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = 0. Min value = 0. Max value = 28.