Confessoru Posted January 24, 2022 Share Posted January 24, 2022 (edited) I have a widget mod that displays current health, stamina and magica with a custom swf file, it's always visible. In the widget script I have a snippet from SKI_WidgetBase function fadeTo(float a_alpha, float a_duration) float[] args = new float[2] args[0] = a_alpha args[1] = a_duration UI.InvokeFloatA(HUD_MENU, WidgetRoot + ".fadeOut", args) endFunction I need the widget icons to fade out when one of those 3 corresponding attributes is full, like with the vanilla meters. I tried doing it with PlayerRef.GetActorValuePercentage, but that means constant registering for updates, I couldn't figure out how to set it up properly. Is there a way to call directly on the vanilla meters like iHUD does it and then use FadeTo for it? Edited January 24, 2022 by Confessoru Link to comment Share on other sites More sharing options...
Recommended Posts