TEMPEST.114 Posted February 1, 2023 Posted February 1, 2023 DCS enum coalition - DCS World Wiki - Hoggitworld.com This shows both. Which is it?
Chump Posted February 1, 2023 Posted February 1, 2023 The last part is uppercase when using the enum. You really shouldn't use the value (2) in case it ever changes. coalition.side.BLUE https://wiki.hoggitworld.com/view/DCS_Scripting_orig_Part_1#coalition
TEMPEST.114 Posted February 1, 2023 Author Posted February 1, 2023 8 hours ago, Chump said: The last part is uppercase when using the enum. You really shouldn't use the value (2) in case it ever changes. coalition.side.BLUE https://wiki.hoggitworld.com/view/DCS_Scripting_orig_Part_1#coalition So this is definitely wrong then? (from original link) constants: coalition.side enumerator values 0 = Neutral 1 = Red 2 = Blue
Solution Chump Posted February 2, 2023 Solution Posted February 2, 2023 coalition.side.NEUTRAL coalition.side.RED coalition.side.BLUE That's what you want to use. Example: local group = Group.getByName("MyGroup") if group and group:getCoalition() == coalition.side.BLUE then -- do stuff for blue group end 1
Recommended Posts