PlayerStats
ASSIGNABLES
maxHealth: Initial health value.
maxShield: Initial shield value.
timeToRevive: Time to revive when dead ( if there is any enabled checkpoint )
healthRegenerationMethod: Set the health regeneration method. None: Won´t regenerate. AlwaysRegenerates: Regenerate if the health is below the maximum value.
healthRegenerationAmount: Amount of regeneration.
healthRegenerationRate: How fast the regeneration occurs. The lower this number is, the faster the regeneration will be
takeFallDamage: Enable if the player should be able to take damage.
dontTakeFallDamageIfWallSliding: Enable to disallow fall damage when wall sliding.
dontTakeFallDamageIfGliding: Enable to disallow fall damage when gliding.
minimumHeightDifferenceToApplyDamage: Minimum distance to apply fall damage when landing.
minimumHeightDifferenceToApplyDamage: Minimum distance to apply fall damage when landing.
fallDamageMultiplier: Damage applied. This depends on the height of landing.
flashesOnDamage: Enable to apply flash or blink effect when damaged.
flashDuration: Amount of time in seconds that the flash takes to complete.
hurtCameraShake
flashSpeed: Velocity of the flash. The higher this number is, the more blinks it will perform.
IsDead { bool }
Health { float }
Shield { float }
MaxHealth { float }
MaxShield { float }
_HealthRegenerationMethod { HealthRegenerationMethod }
Damage(float damage)
Damage the player.
damage: Damage dealt to the player.
Heal(float healAmount)
Heal the player.
healAmount: Amount to heal the player.
Last updated