Third Person Cover Shooter  1.6
CoverShooter.DamageTrigger Class Reference

Deals damage to Character Health components attached to objects that enter its trigger area. More...

Inheritance diagram for CoverShooter.DamageTrigger:

Public Attributes

DamageType Type = DamageType.Relative
 Type of damage dealt. More...
 
float Damage = 0.3f
 Amount of damage. More...
 
bool OnlyOnce = false
 Is shut down after the first trigger. More...
 
AudioClip Sound
 Sound to be played on trigger. More...
 

Detailed Description

Deals damage to Character Health components attached to objects that enter its trigger area.

Member Data Documentation

◆ Damage

float CoverShooter.DamageTrigger.Damage = 0.3f

Amount of damage.

When damage type is set to relative this is a fraction of MaxHealth.

◆ OnlyOnce

bool CoverShooter.DamageTrigger.OnlyOnce = false

Is shut down after the first trigger.

◆ Sound

AudioClip CoverShooter.DamageTrigger.Sound

Sound to be played on trigger.

◆ Type

DamageType CoverShooter.DamageTrigger.Type = DamageType.Relative

Type of damage dealt.

Relative means relative to MaxHealth. Constant is always the same no matter the character that triggers.


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