Alright, I'll start off saying that I'm new to scripting and am only just learning, so this might not make sense.
I am trying to create a script that displays how much energy you have left, energy being the blue bar in the top-right hand corner of your screen when using a player type such as fuel-jet player. I know how to do the actual display part and I also know how to make it work perfectly for your health. All I really need to know is if there is a specific line of code that would be able to get the energy level.
In short:
%hp = mCeil(%pl.getDatablock().maxDamage - %pl.getDamageLevel());
This is a line of code that finds the damage level of a player, so how can I turn this into a line of code that instead finds the energy level of a player?