Search Results for

    Show / Hide Table of Contents

    Class DefineAttachedObjectHelper

    Inheritance
    Object
    CustomHelper
    DefineAttachedObjectHelper
    Inherited Members
    CustomHelper.Start()
    CustomHelper.Start(Int32)
    CustomHelper.Stop()
    CustomHelper.SetArgument(String, Boolean)
    CustomHelper.SetArgument(String, Int32)
    CustomHelper.SetArgument(String, Single)
    CustomHelper.SetArgument(String, String)
    CustomHelper.SetArgument(String, Vector3)
    CustomHelper.ResetArguments()
    CustomHelper.ToString()
    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 sealed class DefineAttachedObjectHelper : CustomHelper

    Constructors

    | Improve this Doc View Source

    DefineAttachedObjectHelper(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

    The Ped to send the DefineAttachedObject Message to.

    Properties

    | Improve this Doc View Source

    ObjectMass

    Mass of the attached object.

    Declaration
    public float ObjectMass { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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).

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX