TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.CharacterRagdollOnDeath Class Reference

Add this to a character and it'll trigger its MMRagdoller to ragdoll on death. More...

Inheritance diagram for MoreMountains.TopDownEngine.CharacterRagdollOnDeath:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Member Functions

virtual void ResetRagdoll ()

Public Attributes

MMRagdoller Ragdoller
 The MMRagdoller for this character.
List< GameObject > ObjectsToDisableOnDeath
 A list of optional objects to disable on death.
List< MonoBehaviour > MonosToDisableOnDeath
 A list of optional monos to disable on death.
float ForceMultiplier = 10000f
 the force by which the impact will be multiplied
bool RagdollButton
 A test button to trigger the ragdoll from the inspector.
bool ResetRagdollButton
 A test button to reset the ragdoll from the inspector.

Protected Member Functions

virtual void Start ()
 On Awake we initialize our component.
virtual void Initialization ()
 Grabs our health and controller.
virtual void GrabHealth ()
virtual void OnDeath ()
 When we get a OnDeath event, we ragdoll.
virtual void OnRevive ()
virtual void Ragdoll ()
 Disables the specified objects and monos and triggers the ragdoll.
virtual void OnDestroy ()
 OnDestroy we stop listening to OnDeath events.

Protected Attributes

TopDownController _controller
Health _health
Transform _initialParent
Vector3 _initialPosition
Quaternion _initialRotation
Character _character

Detailed Description

Add this to a character and it'll trigger its MMRagdoller to ragdoll on death.

Member Function Documentation

◆ GrabHealth()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.GrabHealth ( )
protectedvirtual

◆ Initialization()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Initialization ( )
protectedvirtual

Grabs our health and controller.

◆ OnDeath()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnDeath ( )
protectedvirtual

When we get a OnDeath event, we ragdoll.

◆ OnDestroy()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnDestroy ( )
protectedvirtual

OnDestroy we stop listening to OnDeath events.

◆ OnRevive()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnRevive ( )
protectedvirtual

◆ Ragdoll()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Ragdoll ( )
protectedvirtual

Disables the specified objects and monos and triggers the ragdoll.

◆ ResetRagdoll()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ResetRagdoll ( )
virtual

◆ Start()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Start ( )
protectedvirtual

On Awake we initialize our component.

Member Data Documentation

◆ _character

Character MoreMountains.TopDownEngine.CharacterRagdollOnDeath._character
protected

◆ _controller

TopDownController MoreMountains.TopDownEngine.CharacterRagdollOnDeath._controller
protected

◆ _health

Health MoreMountains.TopDownEngine.CharacterRagdollOnDeath._health
protected

◆ _initialParent

Transform MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialParent
protected

◆ _initialPosition

Vector3 MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialPosition
protected

◆ _initialRotation

Quaternion MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialRotation
protected

◆ ForceMultiplier

float MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ForceMultiplier = 10000f

the force by which the impact will be multiplied

◆ MonosToDisableOnDeath

List<MonoBehaviour> MoreMountains.TopDownEngine.CharacterRagdollOnDeath.MonosToDisableOnDeath

A list of optional monos to disable on death.

◆ ObjectsToDisableOnDeath

List<GameObject> MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ObjectsToDisableOnDeath

A list of optional objects to disable on death.

◆ RagdollButton

bool MoreMountains.TopDownEngine.CharacterRagdollOnDeath.RagdollButton

A test button to trigger the ragdoll from the inspector.

◆ Ragdoller

MMRagdoller MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Ragdoller

The MMRagdoller for this character.

◆ ResetRagdollButton

bool MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ResetRagdollButton

A test button to reset the ragdoll from the inspector.


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Characters/CharacterAbilities/CharacterRagdollOnDeath.cs