CodyJ(L)

[Poll?]What would you like to see in a new map editor?

Recommended Posts

local ox, oy, ex, ey = 0, 0, 0, 0

addEventHandler('onClientClick', root, function(button, state)
	local px, py = getCursorPosition()
	if button == 'left' then
		if state == 'up' then
			ex, ey = px, py
		elseif state == 'down' then
			ox, oy = px, py
		end
	end
end)

function find()
	local r
	for i=ox, ex do
		for e=oy, ey do
			local x, y, z = getWorldFromScreenPosition(i, e)
			r = processLineOfSight(x, y, z, xOffset, yOffset, z) -- use custom offsets
		end
	end
	return r or false
end

 

Share this post


Link to post

I hope to have revision two (And Beta) out on the 10th.

  • Like 1

Share this post


Link to post

Will go live the 16th, I was busy this week so wasn't able to work on it as much as I would have liked. Instead I'll work throughout this upcoming week (And weekend) then launch it Sunday. There are features which I plan to add to the future builds but are not priority thus some are not added yet.

 

eW3Cprb.png

Current state of things.

Edited by CodyJ(L)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now