-
How exactly do you actually store the result of Some code that i wrote to try and get local location = {X=0, Y=0, Z=0}
for i = 1, 3 do
location[i] = gps.locate()
print(location[i])
end |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
gps.locate function returns multiple values, you can either store it by having multiple assigment, or by packing them into table. local x,y,z = gps.locate() or local pos = {gps.locate()} |
Beta Was this translation helpful? Give feedback.
gps.locate function returns multiple values, you can either store it by having multiple assigment, or by packing them into table.
so for example:
or