◆ AddStamina()
proto external void CharacterStaminaComponent.AddStamina |
( |
float |
pStamina | ) |
|
Adds stamina, in range 0-1.
Can accept negative values. Has to be run on owner
- Parameters
-
pStamina | How much stamina should be changed. |
◆ GetBreathFrequency()
proto external float CharacterStaminaComponent.GetBreathFrequency |
( |
| ) |
|
Returns current breath frequency.
- Returns
- Returns the frequency, i.e. amount of full breaths taken per second.
◆ GetBreathMagnitude()
proto external float CharacterStaminaComponent.GetBreathMagnitude |
( |
| ) |
|
Returns current breath magnitude.
- Returns
- Returns the current magnitude of breath.
◆ GetBreathProgress()
proto external float CharacterStaminaComponent.GetBreathProgress |
( |
| ) |
|
Returns breath progress as <0,1>.
Progress goes from 0 to 1 then back to 0.
- Returns
- Returns breath progress as a value <0,1> where 0 is breath out, 1 is breath in.
◆ OnStaminaDrain()
void CharacterStaminaComponent.OnStaminaDrain |
( |
float |
pDrain | ) |
|
Runs every time stamina value has changed.
- Parameters
-
pDrain | How much stamina has recovered/drained. |
The documentation for this interface was generated from the following file:
- Game/generated/Character/CharacterStaminaComponent.c