Class DefineAttachedObjectHelper
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class DefineAttachedObjectHelper : CustomHelper
Constructors
| Improve this Doc View SourceDefineAttachedObjectHelper(Ped)
Creates a new Instance of the DefineAttachedObjectHelper for sending a DefineAttachedObject Message to a given Ped.
Declaration
public DefineAttachedObjectHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Properties
| Improve this Doc View SourceObjectMass
Mass of the attached object.
Declaration
public float ObjectMass { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = 0.0f.
PartIndex
Index of part to attach to.
Declaration
public int PartIndex { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = -1. Min value = -1. Max value = 21.
WorldPos
World position of attached object's center of mass. Must be updated each frame.
Declaration
public Vector3 WorldPos { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f).