Class ForceLeanTowardsObjectHelper
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class ForceLeanTowardsObjectHelper : CustomHelper
Constructors
| Improve this Doc View SourceForceLeanTowardsObjectHelper(Ped)
Creates a new Instance of the ForceLeanTowardsObjectHelper for sending a ForceLeanTowardsObject Message to a given Ped.
Declaration
public ForceLeanTowardsObjectHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Properties
| Improve this Doc View SourceBodyPart
Body part that the force is applied to.
Declaration
public int BodyPart { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = 0. Min value = 0. Max value = 21.
BoundIndex
BoundIndex of object to move towards (0 = just use instance coordinates).
Declaration
public int BoundIndex { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = 0. Min value = 0.
InstanceIndex
LevelIndex of object to move towards.
Declaration
public int InstanceIndex { set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Default value = -1. Min value = -1.
LeanAmount
Amount of lean, 0 to about 0.5. -ve will move away from the target.
Declaration
public float LeanAmount { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.2f. Min value = -0.5f. Max value = 0.5f.
Offset
Offset from instance position added when calculating position to lean to.
Declaration
public Vector3 Offset { set; }
Property Value
Type | Description |
---|---|
Vector3 |
Remarks
Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -100.0f. Max value = 100.0f.