SpikeGondorff Posted March 17, 2021 Posted March 17, 2021 Greetings all, I have what appears to be a dumb problem. The Follow task isn't working for me, and I assume I've missed something. I'm trying to get a Red plane to follow a Blue plane, which precludes the use of the Follow Task in the ME UI. I created stole this script, and literally nothing happens when it's supposed to trigger (plane doesn't move to intercept, no error message pops up, no errors in the DCS log, nothing): local IranF4Follow = { id = "Follow", params = { groupId = Group.getByName ("Overlord"):getID(), pos = {x = 1000, y = 0, z = 1000} } } Group.getByName("IranF4"):getController():pushTask(IranF4Follow) The trigger condition in the UI is just a Time More - 5 secs, and there's nothing else in the mission. It's literally an Iranian F4 and a US E2 that are within about 3 miles of each other to ensure they can see one another. I've triplechecked the Group names (and even changed then copy/pasted them to be sure), checked the case sensitive commands, use the actual groupId instead of the name lookup, everything I can think of, but it's not following. The odd thing is that if I make it a Red following a Red plane, the ME UI Follow task works fine while this script still does not. So I assume it's something on my end. Any help would be appreciated, thanks.
Rokkett Posted March 17, 2021 Posted March 17, 2021 I recall that if you set this up first in the ME: Quote make it a Red following a Red plane You can then change the coalition of one, and now red should follow blue (or vice versa). 1
SpikeGondorff Posted March 18, 2021 Author Posted March 18, 2021 23 hours ago, Rokkett said: I recall that if you set this up first in the ME: You can then change the coalition of one, and now red should follow blue (or vice versa). Oddly enough, it worked, thanks! I was messing around with it, and I don't think I even changed the coalition. I just made that group a RedFor, had the other RedFor follow it, then swapped the original back to Blue. Here's to hoping they don't patch it out. Thanks! Would be curious if anyone else knows why my Follow script is failing...in case they do patch it out.
Recommended Posts