|
Third Person Cover Shooter
1.6
|
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] |
Description of a bullet hit.
Used when passed to OnHit events.
| CoverShooter.Hit.Hit | ( | Vector3 | position, |
| Vector3 | normal, | ||
| float | damage, | ||
| GameObject | attacker, | ||
| GameObject | target, | ||
| HitType | type, | ||
| float | reactionDelay | ||
| ) |
Create a bullet hit description.
| position | Position of the hit in world space. |
| normal | Normal of the hit in world space. Faces outwards from the hit object. |
| damage | Damage dealt to the impacted object. |
| attacker | Owner of the weapon that caused the hit. |
| target | Object that was hit. |
| type | Type of the damage dealt. |
| reactionDelay | Time in seconds between hits that the character will respond to with hurt animations. |
| GameObject CoverShooter.Hit.Attacker |
Owner of the weapon that caused the hit.
| float CoverShooter.Hit.Damage |
Damage dealt to the impacted object.
| Vector3 CoverShooter.Hit.Normal |
Normal of the hit in world space.
Faces outwards from the hit object.
| Vector3 CoverShooter.Hit.Position |
Position of the hit in world space.
| float CoverShooter.Hit.ReactionDelay |
Time in seconds between hits that the character will respond to with hurt animations.
| GameObject CoverShooter.Hit.Target |
Object that was hit.
| HitType CoverShooter.Hit.Type |
Type of the damage.
|
get |