Class CustomHelper
Inheritance
Inherited Members
Namespace: GTA.NaturalMotion
Assembly: ScriptHookVDotNet3.dll
Syntax
public abstract class CustomHelper
Constructors
| Improve this Doc View SourceCustomHelper(Ped, String)
Creates a helper class for building Natural Motion messages to send to a given Ped.
Declaration
protected CustomHelper(Ped target, string message)
Parameters
Type | Name | Description |
---|---|---|
Ped | target | The Ped that the message will be applied to. |
String | message | The name of the natural motion message. |
Methods
| Improve this Doc View SourceResetArguments()
Resets all arguments to their default values.
Declaration
public void ResetArguments()
SetArgument(String, Vector3)
Declaration
public void SetArgument(string argName, Vector3 value)
Parameters
Type | Name | Description |
---|---|---|
String | argName | The argument name. |
Vector3 | value | The value to set the argument to. |
SetArgument(String, Boolean)
Declaration
public void SetArgument(string argName, bool value)
Parameters
Type | Name | Description |
---|---|---|
String | argName | The argument name. |
Boolean | value | The value to set the argument to. |
SetArgument(String, Int32)
Declaration
public void SetArgument(string argName, int value)
Parameters
Type | Name | Description |
---|---|---|
String | argName | The argument name. |
Int32 | value | The value to set the argument to. |
SetArgument(String, Single)
Declaration
public void SetArgument(string argName, float value)
Parameters
Type | Name | Description |
---|---|---|
String | argName | The argument name. |
Single | value | The value to set the argument to. |
SetArgument(String, String)
Declaration
public void SetArgument(string argName, string value)
Parameters
Type | Name | Description |
---|---|---|
String | argName | The argument name. |
String | value | The value to set the argument to. |
Start()
Starts this Natural Motion behavior on the Ped that will loop until manually aborted.
Declaration
public void Start()
Start(Int32)
Starts this Natural Motion behavior on the Ped for a specified duration.
Declaration
public void Start(int duration)
Parameters
Type | Name | Description |
---|---|---|
Int32 | duration | How long to apply the behavior for (-1 for looped). |
Stop()
Stops this Natural Motion behavior on the Ped.
Declaration
public void Stop()
ToString()
Returns the internal message name.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |