Add Mouse surface position as CustomInput attribute

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
totalnugget
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Sep 28, 2020 10:40 am
Contact:

Add Mouse surface position as CustomInput attribute

Post by totalnugget »

what
Add mouse_surface_position & surface_index as attribute to the CustomInput event

These would be the same params found in the on_script_trigger_effect surface_index & source_position.

note: surface_index is likely not needed, but certain mods allow you to view different surfaces, where this will be needed
Why
This would allow a mod to use the left, right, middle, ect mouse button to their full potential. Currently only by making the player use (left click with) a specific item the mouse location can be obtained.

Personally this would allow me to create a better interaction for RTS type unit control. This would allow for the right mouse button to be a move order / attack order. while the left button can be selection at the same time.


Note: the position should work normally as well as on the map.
Post Reply

Return to “Modding interface requests”