Cylus Scratcher Resi Posted June 13, 2022 Share Posted June 13, 2022 Hi, I have been having a nightmare and struggling to find the answer. I want to run the "Target Detected" script on my multiplayer mission, but when I add the possible unit names, unless all slots are filled I get an error. How can I write a script that only pulls the connected user units? My LUA-Fu is not very strong, and really aving issues with getting this working. Cheers Link to comment Share on other sites More sharing options...
cfrag Posted June 13, 2022 Share Posted June 13, 2022 While I'm not sure what the "Target Detected" script requires, you can get the currently connected player units for each side with coalition.getPlayers(coalitionID) See here Link to comment Share on other sites More sharing options...
Recommended Posts