
Code: Select all
function widget:MousePress(mouseX, mouseY, mButton)
local _, location = Spring.TraceScreenRay(mouseX, mouseY)
if location ~= nil then
Spring.Echo(location[1],location[2],location[3])
end
end
Moderator: Moderators
Code: Select all
function widget:MousePress(mouseX, mouseY, mButton)
local _, location = Spring.TraceScreenRay(mouseX, mouseY)
if location ~= nil then
Spring.Echo(location[1],location[2],location[3])
end
end
Code: Select all
if location ~= nil and type(location) == "table" then