Topic: Trying to make a universal guage drain to work
Hello:
Trying to make a universal guage drain to work. Some instances I want the Guage 2 to drain after being hit by a projectible. There's nothing available in the Editor yet for it.
I tried to modify this code in ControlsScript.cs but it didn't work. Please advise.
public void DoFixedUpdate(
IDictionary<InputReferences, InputEvents> previousInputs,
IDictionary<InputReferences, InputEvents> currentInputs
)
{
// Gauge Drain
if (gaugeDPS != 0)
{
UFE.p1ControlsScript.currentGaugesPoints[1] -= (1000 * (gaugeDPS / 100) / UFE.config.fps) * UFE.timeScale;
UFE.p2ControlsScript.currentGaugesPoints[1] -= (1000 * (gaugeDPS / 100) / UFE.config.fps) * UFE.timeScale;
}
}