Page 1 of 1

Allow control of multiplayer cursor visibility for force

Posted: Sun Jun 22, 2025 1:29 pm
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.