Random Posted July 28, 2014 Posted July 28, 2014 Been looking into making some missions and I'm a bit daunted by the level of depth you can get into. Is there a PDF manual anywhere? I haven't seen one in the MissionEditor folder within DCS world. I'm not trying to make the worlds most complex mission but as a total noob I'm struggling with even the basics. Placing units and waypoints is easy. I think I understand the trigger basics. But have ZERO clue about "flags" and scripting so anywhere with a morons guide to these would be good. I've seen one post on flags, but I don't even understand their use let alone the intricacies in the thread I was looking at. Currently I'm building a basic MP coop mission. One task will be to attack an artillery battery moving into position to fire on the player airbase. What I want to do is have the artillery retreat to a waypoint when it takes 75% losses. I can find trigger conditions for the losses part but can't find an action that will switch to the final retreat waypoint.
Flagrum Posted July 28, 2014 Posted July 28, 2014 (edited) The manual you are looking for is the "DCS User Manual" in the ...\DCS World\Doc directory. Flags are a concept that is not too hard to grasp. It is basically a "numerical variable" in terms of programming languages. In short, if something happens, ususally implemented as a trigger, you can "set" or "assign" a value to a flag - just as some sort of "reminder" that XY has happened. Then, somewhere else you can check if the flag is "set" or if the flag contains a specific value and depending on that, perform other actions. This is usefull if you want to react on something which can occur at different places but you don't want to implement your reaction to that only once (i.e. multiple triggers can set the same flag and then you need only one more trigger that reacts to that flag). The thing with flags is just, that you can not give them descriptive names. A flag is just a number. So you better take notes of what flag is meant to be what. But for your current artillery question, afaik you might be out of luck here. Air units can be told to continue on their route with a specific waypoint ... but ground units can't. You would probably need to assign a completely new route to ground units - and that can be done only by using lua scripting. Which isn't rocket science ... but maybe a bit too much if you are just starting with the ME. But perhaps some of the scripting gurus here can help you out with that. :o) Edited July 28, 2014 by Flagrum
Random Posted July 28, 2014 Author Posted July 28, 2014 Thanks! Flags make more sense now! I'll just go without the retreat for now and pretend the arty is crewed with fearless russian super-soldiers....
Recommended Posts