Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
ModWobblyLife.ModRagdollHandJoint Class Reference

A players hand, used for grabbing items/players. More...

Inheritance diagram for ModWobblyLife.ModRagdollHandJoint:

Public Member Functions

delegate bool ModRagdollHandJointGrabFunc (GameObject grabbingGameObject)
 
void AddIsAllowedToGrab (ModRagdollHandJointGrabFunc isAllowedToGrabCallback)
 Add a func callback whether an item should be grabbable or not.
 
void RemoveIsAllowedToGrab (ModRagdollHandJointGrabFunc isAllowedToGrabCallback)
 Remove a func callback whether an item should be grabbable or not.
 
void ForceGrab (GameObject attemptGrabObject, Vector3? localPositionToGrab=null, bool bForce=false)
 Force grabs an item.
 
void ForceUngrab ()
 Force ungrab any object you are holding.
 
void SetIsAllowedToGrab (bool bIsAllowedToGrab)
 Sets whether this hand is allowed to grab (Server only)
 
void SetIsAllowedToPoint (bool bIsAllowedToPoint)
 Sets whether this hand is allowed to point (Server only)
 
void ResetPointing ()
 Reset the pointing back to normal (Server only)
 
void SetPointing (bool bIsPointing, bool bForce=false)
 Set whether this hand is pointing (Server only)
 
bool IsGrabbing ()
 Returns whether this hand is grabbing (Server only)
 
bool IsPointing ()
 Returns whether tihs hand is pointing (Server only)
 
GameObject GetGrabbingObject ()
 Returns the current grabbing object (Server only)
 

Detailed Description

A players hand, used for grabbing items/players.

Member Function Documentation

◆ AddIsAllowedToGrab()

void ModWobblyLife.ModRagdollHandJoint.AddIsAllowedToGrab ( ModRagdollHandJointGrabFunc  isAllowedToGrabCallback)

Add a func callback whether an item should be grabbable or not.

Parameters
isAllowedToGrabCallback

◆ ForceGrab()

void ModWobblyLife.ModRagdollHandJoint.ForceGrab ( GameObject  attemptGrabObject,
Vector3?  localPositionToGrab = null,
bool  bForce = false 
)

Force grabs an item.

Parameters
attemptGrabObjectThe object you are trying to grab
localPositionToGrabThe exact local point you want to grab
bForce

◆ ForceUngrab()

void ModWobblyLife.ModRagdollHandJoint.ForceUngrab ( )

Force ungrab any object you are holding.

◆ GetGrabbingObject()

GameObject ModWobblyLife.ModRagdollHandJoint.GetGrabbingObject ( )

Returns the current grabbing object (Server only)

Returns

◆ IsGrabbing()

bool ModWobblyLife.ModRagdollHandJoint.IsGrabbing ( )

Returns whether this hand is grabbing (Server only)

Returns

◆ IsPointing()

bool ModWobblyLife.ModRagdollHandJoint.IsPointing ( )

Returns whether tihs hand is pointing (Server only)

Returns

◆ ModRagdollHandJointGrabFunc()

delegate bool ModWobblyLife.ModRagdollHandJoint.ModRagdollHandJointGrabFunc ( GameObject  grabbingGameObject)

◆ RemoveIsAllowedToGrab()

void ModWobblyLife.ModRagdollHandJoint.RemoveIsAllowedToGrab ( ModRagdollHandJointGrabFunc  isAllowedToGrabCallback)

Remove a func callback whether an item should be grabbable or not.

Parameters
isAllowedToGrabCallback

◆ ResetPointing()

void ModWobblyLife.ModRagdollHandJoint.ResetPointing ( )

Reset the pointing back to normal (Server only)

◆ SetIsAllowedToGrab()

void ModWobblyLife.ModRagdollHandJoint.SetIsAllowedToGrab ( bool  bIsAllowedToGrab)

Sets whether this hand is allowed to grab (Server only)

Parameters
bIsAllowedToGrab

◆ SetIsAllowedToPoint()

void ModWobblyLife.ModRagdollHandJoint.SetIsAllowedToPoint ( bool  bIsAllowedToPoint)

Sets whether this hand is allowed to point (Server only)

Parameters
bIsAllowedToPoint

◆ SetPointing()

void ModWobblyLife.ModRagdollHandJoint.SetPointing ( bool  bIsPointing,
bool  bForce = false 
)

Set whether this hand is pointing (Server only)

Parameters
bIsPointing
bForce