Page 1 of 1

Add missing event for catching super_forced_select

Posted: Sun Mar 02, 2025 10:23 am
by meifray
Hi, in SelectionToolPrototype,there are 5 selection types,but just super_forced_select dont have event to catch it :/

Re: Add missing event for catching super_forced_select

Posted: Sun Mar 02, 2025 10:45 am
by boskid
There is no such event because this selection mode sends Deconstruct input action so it triggers on_player_deconstructed_area event. The only piece that i see is missing is ability of telling this event apart from regular on_player_deconstructed_area event which game tells apart by looking at "selection_mode" that is not given to that event. If i would add defines.selection_mode.super_forced_select constant and make on_player_deconstructed_area event include "selection_mode" of type "defines.selection_mode", would that be enough for you?

Re: Add missing event for catching super_forced_select

Posted: Sun Mar 02, 2025 2:20 pm
by meifray
Sounds good to me :>