Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved CombatGuage.getPercent() only returning 100 or 0

Joined
Dec 10, 2014
Messages
3,255
Code:
Code:
Actor a = LocalPlayer.getTarget();
CombatGauge guage;
healthPercent = (a == null || (guage = a.getHealthGauge()) == null)?0:guage.getPercent();
...
System.out.println(healthPercent);
Output:
Code:
0.0
0.0
0.0
0.0
0.0
0.0
0.0
100.0
100.0
100.0
100.0
100.0
100.0
@Cloud @Arbiter
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
I need more information. OSRS or RS3. If RS3, which combat mode. Do you have the target display thing turned on so instead of the thin gauges it uses the detailed interface?
 
Joined
Dec 10, 2014
Messages
3,255
I need more information. OSRS or RS3. If RS3, which combat mode. Do you have the target display thing turned on so instead of the thin gauges it uses the detailed interface?
RS3.
EOC combat and interface mode.
Target display(with the name, hp etc) turned on (runescape default).
 
@Cloud problem still exists.
 
boop
 
Top