Class SetCharacterUnderwaterHelper
Sets viscosity applied to damping limbs.
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public sealed class SetCharacterUnderwaterHelper : CustomHelper
Constructors
| Improve this Doc View SourceSetCharacterUnderwaterHelper(Ped)
Creates a new Instance of the SetCharacterUnderwaterHelper for sending a SetCharacterUnderwater Message to a given Ped.
Declaration
public SetCharacterUnderwaterHelper(Ped ped)
Parameters
Type | Name | Description |
---|---|---|
Ped | ped |
Remarks
Sets viscosity applied to damping limbs.
Properties
| Improve this Doc View SourceGravityFactor
Gravity factor applied to character.
Declaration
public float GravityFactor { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 1.0f. Min value = -10.0f. Max value = 10.0f.
LinearStroke
Swimming force (linearStroke=true,False) = (f(v),f(v*v)).
Declaration
public bool LinearStroke { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
Stroke
Swimming force applied to character as a function of handVelocity and footVelocity.
Declaration
public float Stroke { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = 0.0f. Min value = -1000.0f. Max value = 1000.0f.
Underwater
Is character underwater?.
Declaration
public bool Underwater { set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Default value = False.
Viscosity
Viscosity applied to character's parts.
Declaration
public float Viscosity { set; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Default value = -1.0f. Min value = -1.0f. Max value = 100.0f.