Third Person Cover Shooter  1.6
CoverShooter.BodyPartHealth Class Reference

Acts similarly to Character Health, but passed the taken damage to a first found Character Health component in the hierarchy. More...

Inheritance diagram for CoverShooter.BodyPartHealth:

Public Member Functions

void OnHit (Hit hit)
 Reduce health on bullet hit. More...
 

Static Public Member Functions

static BodyPartHealth Get (GameObject gameObject)
 
static bool Contains (GameObject gameObject)
 

Public Attributes

CharacterHealth TargetOveride
 By default target is the first found parent object with CharacterHealth. More...
 
float DamageScale = 1.0f
 Multiplies taken damage before applying it to the target CharacterHealth. More...
 

Properties

CharacterHealth Target [get]
 Target CharacterHealth. More...
 

Detailed Description

Acts similarly to Character Health, but passed the taken damage to a first found Character Health component in the hierarchy.

Member Function Documentation

◆ Contains()

static bool CoverShooter.BodyPartHealth.Contains ( GameObject  gameObject)
static

◆ Get()

static BodyPartHealth CoverShooter.BodyPartHealth.Get ( GameObject  gameObject)
static

◆ OnHit()

void CoverShooter.BodyPartHealth.OnHit ( Hit  hit)

Reduce health on bullet hit.

Member Data Documentation

◆ DamageScale

float CoverShooter.BodyPartHealth.DamageScale = 1.0f

Multiplies taken damage before applying it to the target CharacterHealth.

◆ TargetOveride

CharacterHealth CoverShooter.BodyPartHealth.TargetOveride

By default target is the first found parent object with CharacterHealth.

Setting TargetOverride overrides it.

Property Documentation

◆ Target

CharacterHealth CoverShooter.BodyPartHealth.Target
get

Target CharacterHealth.


The documentation for this class was generated from the following file: