Jump to content

Recommended Posts

Posted

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 ? :)

Posted

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.

.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...