Talk:DamageActorValue - Actor
Jump to navigation
Jump to search
DamageActorValue vs ModActorValue[edit source]
ModActorValue() does not cause the UI to update in the same manner as DamageActorValue()
Try calling Game.GetPlayer().ModActorValue("Stamina", -10.0) and Game.GetPlayer().DamageActorValue("Stamina", 10.0). Notice the Stamina bar does not update when calling ModActorValue().--KainXavier (talk) 2014-04-10T23:28:20 (EDT)
- That's probably because ModActorValue() changes the stamina total, while DamageActorValue only changes the current value. Thus, if you Mod Stamina, by -10, you end up with 90/90 stamina (still 100%), but if you Damage Stamina by 10, you end up with 90/100 (90% stamina). Since the Stamina bar is only a percentage indicator, only Damaging Stamina will change it. Egocarib (talk) 2014-04-12T08:01:00 (EDT)
- You are absolutely right. I'm not sure why I didn't catch that before, thank you!--KainXavier (talk) 2014-04-23T23:16:26 (EDT)