Mercury_1965 Posted August 30, 2020 Posted August 30, 2020 I have a script to message Altitude like this: MyA10C = UNIT:FindByName("gmv-1") Altitude = MyA10C:GetAltitude() * 3.2808 MESSAGE:New("Your Altitude is ft "..Altitude,10):ToAll() MESSAGE Altitude is showed with a lot of decimal, how is possible to format the displayed number .... a function like INT ? :)
HiJack Posted August 30, 2020 Posted August 30, 2020 You would be more successful if you join the MOOSE community on Discord. Check the main MOOSE thread.
HC_Official Posted August 30, 2020 Posted August 30, 2020 MESSAGE:New("Your Altitude is ft ".. tostring(Altitude),10):ToAll() you need to convert the number to a string No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
TJTAS Posted August 30, 2020 Posted August 30, 2020 well if you want to get rid of the decimals use a lua function like:- math.tointeger math.floor math.ceil
Recommended Posts