Search Results for

    Show / Hide Table of Contents

    Class GrabHelper

    Inheritance
    Object
    CustomHelper
    GrabHelper
    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 GrabHelper : CustomHelper

    Constructors

    | Improve this Doc View Source

    GrabHelper(Ped)

    Creates a new Instance of the GrabHelper for sending a Grab Message to a given Ped.

    Declaration
    public GrabHelper(Ped ped)
    Parameters
    Type Name Description
    Ped ped

    The Ped to send the Grab Message to.

    Properties

    | Improve this Doc View Source

    ArmStiffness

    Stiffness of the arm.

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

    Default value = 14.0f. Min value = 6.0f. Max value = 16.0f.

    | Improve this Doc View Source

    BodyStiffness

    Stiffness of upper body. Scales the arm grab such that the armStiffness is default when this is at default value.

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

    Default value = 11.0f. Min value = 6.0f. Max value = 16.0f.

    | Improve this Doc View Source

    DontLetGo

    Once a constraint is made, keep reaching with whatever hand is allowed - no matter what the angle/distance and whether or not the constraint has broken due to constraintForce GT grabStrength. mmmtodo this is a badly named parameter.

    Declaration
    public bool DontLetGo { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    DropWeaponDistance

    Distance below which a weapon carrying hand will request weapon to be dropped.

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

    Default value = 0.3f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    DropWeaponIfNecessary

    If hasn't grabbed when weapon carrying hand is close to target, grab anyway.

    Declaration
    public bool DropWeaponIfNecessary { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    FromEA

    Use 2 point.

    Declaration
    public bool FromEA { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    GrabDistance

    Relative distance at which the grab starts.

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

    Default value = 1.0f. Min value = 0.0f. Max value = 4.0f.

    | Improve this Doc View Source

    GrabHoldMaxTimer

    Amount of time, in seconds, before grab automatically bails.

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

    Default value = 100.0f. Min value = 0.0f. Max value = 1000.0f.

    | Improve this Doc View Source

    GrabStrength

    Strength in hands for grabbing (kg m/s), -1 to ignore/disable.

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

    Default value = -1.0f. Min value = -1.0f. Max value = 10000.0f.

    | Improve this Doc View Source

    HandsCollide

    Hand collisions on when grabbing (false turns off hand collisions making grab more stable esp. To grab points slightly inside geometry).

    Declaration
    public bool HandsCollide { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    InstanceIndex

    LevelIndex of instance to grab (-1 = world coordinates).

    Declaration
    public int InstanceIndex { set; }
    Property Value
    Type Description
    Int32
    Remarks

    Default value = -1. Min value = -1.

    | Improve this Doc View Source

    InstancePartIndex

    BoundIndex of part on instance to grab (0 = just use instance coordinates).

    Declaration
    public int InstancePartIndex { set; }
    Property Value
    Type Description
    Int32
    Remarks

    Default value = 0. Min value = 0.

    | Improve this Doc View Source

    JustBrace

    Flag to toggle between grabbing and bracing.

    Declaration
    public bool JustBrace { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    LookAtGrab

    If true, the character will look at the grab.

    Declaration
    public bool LookAtGrab { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = True.

    | Improve this Doc View Source

    MaxReachDistance

    Distance to reach out towards the grab point.

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

    Default value = 0.7f. Min value = 0.0f. Max value = 4.0f.

    | Improve this Doc View Source

    MaxWristAngle

    When we are grabbing the max angle the wrist ccan be at before we break the grab.

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

    Default value = 3.1f. Min value = 0.0f. Max value = 3.2f.

    | Improve this Doc View Source

    Move2Radius

    Relative distance (additional to grabDistance - doesn't try to move inside grabDistance)at which the grab tries to use the balancer to move to the grab point.

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

    Default value = 0.0f. Min value = 0.0f. Max value = 14.0f.

    | Improve this Doc View Source

    NormalL

    Normal for the left grab point.

    Declaration
    public Vector3 NormalL { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -1.0f. Max value = 1.0f.

    | Improve this Doc View Source

    NormalL2

    Normal for the 3rd left grab point (if pointsX4grab=true).

    Declaration
    public Vector3 NormalL2 { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -1.0f. Max value = 1.0f.

    | Improve this Doc View Source

    NormalR

    Normal for the right grab point.

    Declaration
    public Vector3 NormalR { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -1.0f. Max value = 1.0f.

    | Improve this Doc View Source

    NormalR2

    Normal for the 2nd right grab point (if pointsX4grab=true).

    Declaration
    public Vector3 NormalR2 { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -1.0f. Max value = 1.0f.

    | Improve this Doc View Source

    OneSideReachAngle

    Angle at which we will only reach with one hand.

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

    Default value = 1.4f. Min value = 0.0f. Max value = 3.0f.

    | Improve this Doc View Source

    OrientationConstraintScale

    Scale torque used to rotate hands to face normals.

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

    Default value = 1.0f. Min value = 0.0f. Max value = 4.0f.

    | Improve this Doc View Source

    PointsX4grab

    Use 2 point.

    Declaration
    public bool PointsX4grab { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    Pos1

    Grab pos1, right hand if not using line or surface grab.

    Declaration
    public Vector3 Pos1 { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f).

    | Improve this Doc View Source

    Pos2

    Grab pos2, left hand if not using line or surface grab.

    Declaration
    public Vector3 Pos2 { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f).

    | Improve this Doc View Source

    Pos3

    Declaration
    public Vector3 Pos3 { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f).

    | Improve this Doc View Source

    Pos4

    Declaration
    public Vector3 Pos4 { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f).

    | Improve this Doc View Source

    PullUpStrengthLeft

    Strength to pull up with the left arm. 0 = no pull up.

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

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    PullUpStrengthRight

    Strength to pull up with the right arm. 0 = no pull up.

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

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    PullUpTime

    Time to reach the full pullup strength.

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

    Default value = 1.0f. Min value = 0.0f. Max value = 4.0f.

    | Improve this Doc View Source

    ReachAngle

    Angle from front at which the grab activates. If the point is outside this angle from front will not try to grab.

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

    Default value = 2.8f. Min value = 0.0f. Max value = 3.0f.

    | Improve this Doc View Source

    StickyHands

    Strength of cheat force on hands to pull towards target and stick to target ("cleverHandIK" strength).

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

    Default value = 4.0f. Min value = 0.0f. Max value = 10.0f.

    | Improve this Doc View Source

    SurfaceGrab

    Toggle surface grab on. Requires pos1,pos2,pos3 and pos4 to be specified.

    Declaration
    public bool SurfaceGrab { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    TargetForHeadLook

    Only used if useHeadLookToTarget is true, the target in world space to look at.

    Declaration
    public Vector3 TargetForHeadLook { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f).

    | Improve this Doc View Source

    TurnToTarget

    Declaration
    public TurnType TurnToTarget { set; }
    Property Value
    Type Description
    TurnType
    Remarks

    Default value = ToTarget.

    | Improve this Doc View Source

    UseHeadLookToTarget

    If true, the character will look at targetForHeadLook after a hand grabs until the end of the behavior. (Before grabbing it looks at the grab target).

    Declaration
    public bool UseHeadLookToTarget { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    UseLeft

    Flag to toggle use of left hand.

    Declaration
    public bool UseLeft { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    UseLineGrab

    Use the line grab, Grab along the line (x-x2).

    Declaration
    public bool UseLineGrab { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    UseRight

    Flag to toggle the use of the Right hand.

    Declaration
    public bool UseRight { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

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