Could someone please explain to me how the id object of a function work:
Gameobject Script:
planet.position(id)
Planet Lua Module:
local M = {}
M.offset_position = vmath.vector3()
M.offset_position.x = -200
M.offset_position.y = -200
function M.position(id)
go.set_position(M.offset_position, id)
end
return M
My gameobject changes position but I don’t get my head around the id part.