Difference between revisions of "GetStaminaPercentage"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Layam
m
imported>DavidJCobb
(Reorganized the page. The broken functionality has been verified through disassembly.)
Line 1: Line 1:
This condition function is broken. It is supposed to return the subject actor's current stamina as a percentage of the maximum, but instead, it only returns 0.0 if the actor is out of stamina, or 1.0 otherwise.


See the Papyrus function [[GetActorValuePercentage - Actor|GetActorValuePercentage - Actor]] for a working alternative.


[[Category:Condition Functions]]
[[Category:Condition Functions]]
* This function does not do exactly as is written on the tin. It returns 1.00 in all cases unless the target is completely drained of stamina, in which case it returns 0.00.
See [[GetActorValuePercentage - Actor]] for a working alternative.

Revision as of 14:10, 23 July 2018

This condition function is broken. It is supposed to return the subject actor's current stamina as a percentage of the maximum, but instead, it only returns 0.0 if the actor is out of stamina, or 1.0 otherwise.

See the Papyrus function GetActorValuePercentage - Actor for a working alternative.