what would i put in the bracket to fetch the sprite location of a specific object? I’m trying to get a system set up to spawn sprites on an object, sort of like an artefact pedestal in a rogue-like.
function init(self)
math.randomseed(100000000000000 * (socket.gettime() % 1))
for i=1,20 do
math.random()
end
end
function update(self, dt)
local seed = math.random(1,4)
if seed == 1 then
local pos = vmath.vector3(objectposition) <--
factory.create("#damagebuff", pos)
end
end