I am currently making a new gamemode which runs in 2D with a static camera that has a view of the arena from one specified position. All players can only run in 2D while the map is still 3D. They are basically locked to a specific Y coordinate, because GM:SetupMove disallows them to move forward in relation to the static camera. I have gui.EnableScreenClicker on which releases the mouse so you can click on the screen. What I need help with is how I can make this mouse coordinate transfer into the world and finding that specific Vector with Y valued at 0? (In this map, the plane is locked to Y = 0)
Basically imagine this 2D plane that the players can walk along on. I need the Vector of any point on this plane where the mouse hovers. Or well, really just the general direction from the players. It is supposed to be that when you click with the mouse anywhere, you will shoot in that direction. Here’s a picture on an example map with an example orange plane:
As you can see, the orange plane cuts straight through the middle of the platform.