Search Results for

    Show / Hide Table of Contents

    Class Message

    A base class for manually building a Message.

    Inheritance
    Object
    Message
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GTA.NaturalMotion
    Assembly: ScriptHookVDotNet3.dll
    Syntax
    public class Message

    Constructors

    | Improve this Doc View Source

    Message(String)

    Creates a class to manually build Messages that can be sent to any Ped.

    Declaration
    public Message(string message)
    Parameters
    Type Name Description
    String message

    The name of the natural motion message.

    Methods

    | Improve this Doc View Source

    Abort(Ped)

    Stops this Natural Motion behavior on the given Ped.

    Declaration
    public void Abort(Ped target)
    Parameters
    Type Name Description
    Ped target

    The Ped to send the Abort Message to.

    | Improve this Doc View Source

    CreateBoolIntFloatArgDictIfNotCreated()

    Declaration
    public void CreateBoolIntFloatArgDictIfNotCreated()
    | Improve this Doc View Source

    CreateStringVector3ArrayArgDictIfNotCreated()

    Declaration
    public void CreateStringVector3ArrayArgDictIfNotCreated()
    | Improve this Doc View Source

    ResetArguments()

    Resets all arguments to their default values.

    Declaration
    public void ResetArguments()
    | Improve this Doc View Source

    SendTo(Ped)

    Starts this Natural Motion behavior on the Ped that will loop until manually aborted.

    Declaration
    public void SendTo(Ped target)
    Parameters
    Type Name Description
    Ped target

    The Ped to send the Message to.

    | Improve this Doc View Source

    SendTo(Ped, Int32)

    Starts this Natural Motion behavior on the Ped for a specified duration.

    Declaration
    public void SendTo(Ped target, int duration)
    Parameters
    Type Name Description
    Ped target

    The Ped to send the Message to.

    Int32 duration

    How long to apply the behavior for (-1 for looped).

    | Improve this Doc View Source

    SetArgument(String, Vector3)

    Sets a Message argument to a Vector3 value.

    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.

    | Improve this Doc View Source

    SetArgument(String, Boolean)

    Sets a Message argument to a Boolean value.

    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.

    | Improve this Doc View Source

    SetArgument(String, Int32)

    Sets a Message argument to a Int32 value.

    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.

    | Improve this Doc View Source

    SetArgument(String, Single)

    Sets a Message argument to a Single value.

    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.

    | Improve this Doc View Source

    SetArgument(String, String)

    Sets a Message argument to a String value.

    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.

    | Improve this Doc View Source

    ToString()

    Returns the internal message name.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX