Difference between revisions of "GetStaminaPercentage"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>DavidJCobb
(Reorganized the page. The broken functionality has been verified through disassembly.)
imported>DavidJCobb
(Took a second look; amending findings.)
 
(One intermediate revision by the same user not shown)
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.
This condition function is broken. It is supposed to return the subject actor's current stamina as a percentage of the maximum. Instead, it always returns 1.0.


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


[[Category:Condition Functions]]
[[Category:Condition Functions]]

Latest revision as of 14:38, 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. Instead, it always returns 1.0.

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