Search the Community
Showing results for tags 'allvariables'.
Found 1 result
Hi everyone! I am making a dynamic AI vs AI king of the hill mission and I can't get the AI to capture the sector after it has been moved with setPos. I have programmed parameters to choose the size and location of the target area "sectorModule_F (TA_1)" . Everything is working as intended , script side. However, the spawned groups from the spawn AI modules don't move towards TA_1's new pos. They instead move towards TA_1's original editor placed position. I use setPos and setVariable "pos" to change TA_1's location. this is what I add to the sector modules init filed. This changes the zone size and location to one of 3 test positions. These test positions are logic markers placed in the editor. The zone changes size and location as intended. Players can cap the zone as normal. I need help with understanding the init order of the modules. It seems to me that the sectors location data is stored as a variable in one or more of the 4 sector control modules, as the mission initializes. However, I can't identify the specific variable outside the sectorModule_F that stores the area position so that I can change it with setVariable and make the spawned AI move towards the new sector Pos. Please help me. I used "allVariables" command on the 4 module types that are present in the editor: ModuleMPTypeSectorControl_F, SectorModule_F, ModuleSpawnAI_F, & ModuleSpawnAISectorTactic_F. Please, If anyone who is familiar with these modules and their variables could give me some advice and maybe even a solution I would really appreciate it. Thank you.