Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acts - stopped working with invisible units #31

Open
EKhots opened this issue Feb 26, 2024 · 0 comments
Open

Acts - stopped working with invisible units #31

EKhots opened this issue Feb 26, 2024 · 0 comments

Comments

@EKhots
Copy link

EKhots commented Feb 26, 2024

For some reason it stopped working with enemy's invisible units. They just don't get selected. I'm use: tfow, acts.

They are generated, but simply remain invisible - they cannot be selected. Apparently this is due to an update related to the survey or so.

bool libUTIL_gt_ToggleFOW_Func (bool testConds, bool runActions) {
// Automatic Variable Declarations
// Actions
if (!runActions) {
return true;
}
libUTIL_gv_isFOWEnabled = !(libUTIL_gv_isFOWEnabled);
if ((libUTIL_gv_isFOWEnabled == true)) {
VisRevealerDestroy(libUTIL_gv_revealer);
UIDisplayMessage(PlayerGroupAll(), c_messageAreaDebug, StringToText("Enabled Fog Of War"));
}
else {
VisRevealerCreate(EventPlayer(), RegionEntireMap());
libUTIL_gv_revealer = VisRevealerLastCreated();
UIDisplayMessage(PlayerGroupAll(), c_messageAreaDebug, StringToText("Disabled Fog Of War"));
}
return true;
}
//--------------------------------------------------------------------------------------------------
void libUTIL_gt_ToggleFOW_Init () {
libUTIL_gt_ToggleFOW = TriggerCreate("libUTIL_gt_ToggleFOW_Func");
TriggerAddEventChatMessage(libUTIL_gt_ToggleFOW, c_playerAny, "tfow", true);
TriggerAddEventChatMessage(libUTIL_gt_ToggleFOW, c_playerAny, "togglefogofwar", true);
}

bool libUTIL_gt_ToggleACTS_Func (bool testConds, bool runActions) {
// Variable Declarations
bool lv_isTSEnabled;
int lv_i;
// Automatic Variable Declarations
const int auto742BDE96_ae = 15;
const int auto742BDE96_ai = 1;
const int autoDCF572B4_ae = 15;
const int autoDCF572B4_ai = 1;
// Variable Initialization
// Actions
if (!runActions) {
return true;
}
libUTIL_gv_isACTSEnabled = !(libUTIL_gv_isACTSEnabled);
lv_isTSEnabled = libSprt_gv_dEBUGSelectionEnabled;
if ((libUTIL_gv_isACTSEnabled == true)) {
UIDisplayMessage(PlayerGroupAll(), c_messageAreaDebug, StringToText("Turned ON Alliance Control and Team Selection (/ac, ts)"));
lv_i = 1;
for ( ; ( (autoDCF572B4_ai >= 0 && lv_i <= autoDCF572B4_ae) || (autoDCF572B4_ai < 0 && lv_i >= autoDCF572B4_ae) ) ; lv_i += autoDCF572B4_ai ) {
PlayerSetAlliance(lv_i, c_allianceIdControl, EventPlayer(), true);
}
if ((lv_isTSEnabled != true)) {
libSprt_gf_DEBUGToggleSelection();
}
}
else {
UIDisplayMessage(PlayerGroupAll(), c_messageAreaDebug, StringToText("Turned OFF Alliance Control and Team Selection (/ac, ts)"));
lv_i = 1;
for ( ; ( (auto742BDE96_ai >= 0 && lv_i <= auto742BDE96_ae) || (auto742BDE96_ai < 0 && lv_i >= auto742BDE96_ae) ) ; lv_i += auto742BDE96_ai ) {
PlayerSetAlliance(lv_i, c_allianceIdControl, EventPlayer(), true);
}
if ((lv_isTSEnabled != false)) {
libSprt_gf_DEBUGToggleSelection();
}
}
return true;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant