Skip to content

Acts - stopped working with invisible units #31

@EKhots

Description

@EKhots

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions