Sign in to follow this  
Stoll

[SOLVED] Environment temperature and decimal place

2 posts in this topic

Two questions:
1)
Relating to a statusbar, you can read the body temperature from the ExileClientPlayerAttributes.
Normally it's rounded so you don't have any decimal place: _bodyTemp = round (ExileClientPlayerAttributes select 5);
I would like to have it rounded to one decimal place, but don't know how.
I didn't find something in the wikis about it...

2)
How would I be able to display the environment temperature as well?
Guess I have to get the daytimeTemperature but how? :o

Edited by Stoll

Share this post


Link to post
Share on other sites

Okay, I solved it myself...^_^

1)

_bodyTemp = [(ExileClientPlayerAttributes select 5),1] call ExileClient_util_math_round;

2)

_ambient = [ExileClientEnvironmentTemperature, 1] call ExileClient_util_math_round;

The 1 after the comma indicates the amount of decimals.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.