Third Person Cover Shooter  1.6
CoverShooter.Hit Struct Reference

Description of a bullet hit. More...

Public Member Functions

 Hit (Vector3 position, Vector3 normal, float damage, GameObject attacker, GameObject target, HitType type, float reactionDelay)
 Create a bullet hit description. More...
 

Public Attributes

Vector3 Position
 Position of the hit in world space. More...
 
Vector3 Normal
 Normal of the hit in world space. More...
 
float Damage
 Damage dealt to the impacted object. More...
 
GameObject Attacker
 Owner of the weapon that caused the hit. More...
 
GameObject Target
 Object that was hit. More...
 
HitType Type
 Type of the damage. More...
 
float ReactionDelay
 Time in seconds between hits that the character will respond to with hurt animations. More...
 

Properties

bool IsMelee [get]
 

Detailed Description

Description of a bullet hit.

Used when passed to OnHit events.

Constructor & Destructor Documentation

◆ Hit()

CoverShooter.Hit.Hit ( Vector3  position,
Vector3  normal,
float  damage,
GameObject  attacker,
GameObject  target,
HitType  type,
float  reactionDelay 
)

Create a bullet hit description.

Parameters
positionPosition of the hit in world space.
normalNormal of the hit in world space. Faces outwards from the hit object.
damageDamage dealt to the impacted object.
attackerOwner of the weapon that caused the hit.
targetObject that was hit.
typeType of the damage dealt.
reactionDelayTime in seconds between hits that the character will respond to with hurt animations.

Member Data Documentation

◆ Attacker

GameObject CoverShooter.Hit.Attacker

Owner of the weapon that caused the hit.

◆ Damage

float CoverShooter.Hit.Damage

Damage dealt to the impacted object.

◆ Normal

Vector3 CoverShooter.Hit.Normal

Normal of the hit in world space.

Faces outwards from the hit object.

◆ Position

Vector3 CoverShooter.Hit.Position

Position of the hit in world space.

◆ ReactionDelay

float CoverShooter.Hit.ReactionDelay

Time in seconds between hits that the character will respond to with hurt animations.

◆ Target

GameObject CoverShooter.Hit.Target

Object that was hit.

◆ Type

HitType CoverShooter.Hit.Type

Type of the damage.

Property Documentation

◆ IsMelee

bool CoverShooter.Hit.IsMelee
get

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