Allow control of multiplayer cursor visibility for force

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
root
Inserter
Inserter
Posts: 21
Joined: Fri May 06, 2016 8:58 pm
Contact:

Allow control of multiplayer cursor visibility for force

Post by root »

Add something like

Code: Select all

LuaForce::share_multiplayer_selection_rectangles=true|false
If set to false, only players of this force can see cursors of this force.

or get/set methods to specify force to share cursors with:

Code: Select all

LuaForce::get_share_multiplayer_selection_rectangles(ForceID)
LuaForce::set_share_multiplayer_selection_rectangles(ForceID, share)
If set to false, then players of ForceID can't see cursors of LuaForce, regardless of whether they are friends or enemies

In a PvP scenario I want to make it so that players who are in teams cannot see the spectators cursors. Currently the only way to achieve this is to make the spectators enemies of the players, which is not good for the spectators.
Post Reply

Return to “Modding interface requests”