Skip to content

How do you store ALL parts of gps.locate? #2089

Answered by Wojbie
Allaark asked this question in Q&A
Discussion options

You must be logged in to vote

gps.locate function returns multiple values, you can either store it by having multiple assigment, or by packing them into table.
so for example:

local x,y,z = gps.locate()

or

local pos = {gps.locate()}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Allaark
Comment options

@Wojbie
Comment options

@Allaark
Comment options

Answer selected by Allaark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants