Jump to content

System Variables?


kvhollis

Recommended Posts

Here's what you wanted and one extra. I had to do a search through the forum's older posts to come up with the code. Keep in mind the Builder doesn't supply you with this, so you'll have to do a little insertion into the lua code itself.

 

To get someone's elevation/altitude:

Player.ObjectLocation.altitude:GetValue("ft")

 

To get the current date and time (the argument specifies the formatting):

os.date("%c")

Referencing this post

 

To get the GPSr's accuracy (the argument specifies the units):

Player.PositionAccuracy:GetValue('ft')

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...