funkyfranky Posted August 22, 2018 Posted August 22, 2018 Is coalition.getGroups() able to get train groups? A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
Grimes Posted August 22, 2018 Posted August 22, 2018 Trains have always been more special than normal unit objects. A number of scripting functions and triggers didn't work with trains at all from the start and the bug report made on it is still open. So there is a distinct possibility that function doesn't return trains. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
funkyfranky Posted August 22, 2018 Author Posted August 22, 2018 Trains have always been more special than normal unit objects. A number of scripting functions and triggers didn't work with trains at all from the start and the bug report made on it is still open. So there is a distinct possibility that function doesn't return trains. Thanks :thumbup: I also just checked with a basic code like for i, gp in pairs(coalition.getGroups(2)) do env.info(Group.getName(gp)) end And it did not return my blue trains. I hope it will work at some point, because it is quite a nice asset :) A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
Recommended Posts