TBone Posted July 24, 2020 Posted July 24, 2020 (edited) Probably a dumb question but....Flags! How the f@#$ do they work? More specifically, what is a flag? I see plenty of information on using them to trigger actions, etc. but can't seem to find out exactly what a flag is or what it represents in the context of the mission editor. Disregard. Just watched a couple YouTube vids. Got it. Edited July 24, 2020 by TBone
ChuckIV Posted July 24, 2020 Posted July 24, 2020 A flag is a placeholder that is filled with either a 1 or a 0 (zero). So, if flag 6 is true it is equal to 1. So you could say Flag 6 = 1. If flag 6 is false, it is equal to zero. So, flag 6 = 0. Now that you know what flags are, you can use them to do some pretty cool stuff. For example, you could set a trigger in mission like "If enemy is in this particular zone, set flag 12 to true, or 1. Then you could set up a message to tell someone something. Like this... If flag 12 = 1, then output this message "Hey, look out someone's entering your zone!!". Hope this gives you an idea now of what flags are. "Never in the field of human conflict was so much owed by so many to so few." Winston Churchill SYSTEM: Processor - Intel® Core i9-9900KF CPU @ 3.60GHz 3600MHz water-cooled Installed memory (RAM) - 32.0 GB 64-bit Operating System, x64-based processor Windows 10 & DCS on SSD Video Card - water-cooled NVIDIA GeForce RTX 2080 Ti Internet: Cable 200Mbps 12Mbps
ChillNG Posted July 24, 2020 Posted July 24, 2020 Flags are really simple in nature... Condition met/not met = flag X on /off For simple missions this works really well... If flag X =1 (on) then make Y happen. But as you get deeper into the editor they become a really powerful tool. You can increase the value of the flag and then set additional conditions such as if flag X =4 then Z happens or if flag X = 6 then A happens instead. As things get more complex you can start to use long sequences of conditions to turn flags on and off and adjust their values and in turn use combinations of flags being true or false to determine variables in your missions. In short I think flags are great ????
Recommended Posts