R3vo/Sandbox1 – User
Jump to navigation
Jump to search
This page explains how to draw a frontline on the map similar to how it is done in the Operation Cobra campaign of the Spearhead 1944 CDLC.
< IMAGE GALLERY >
Usage
- Create a layer in Eden Editor called Frontline Control Points. This layer is referenced by the function to generate the frontline data points
< IMAGE >
- Inside that layer, create as many markers as needed to shape the frontline (The wavy black line). These markers act as control points for bezier interpolation and their position will influence the curvature.
< IMAGE >
- Execute the following code in the Arma 3: Debug Console from within Eden Editor to create a real-time preview of the frontline
Close the window that shows up for now. We will need it later.
- Now, drag the previously placed markers to shape the frontline. You can also add new markers by copy and pasting an existing one.
- Once you are happy with the shape of the frontline, execute the following code again in the Arma 3: Debug Console from within Eden Editor.
Instead of "high", "very high" and "ultra" are available, although data generation will take significantly lower and the visual improvements might be neglegeable.
Once the data was generated a window will show. Copy the content of the window and paste it into a script file. Place this script file into your mission folder.
In our case we call it frontline_data.sqf and place it into the root of our test scenario
< IMAGE >
2. 3. Execute this function (see examples below) to generate a preview. Be aware that the higher the quality is, the longer it takes to generate the data 4. Once the function has finished. A window will pop up that shows the generated data. This data is used to create the marker that fill the frontline 5. Copy that data and past it into a script file. Place that script file into your mission folder 6. During the mission execute example 1. Modify the parameters as you like.</nowiki>
- Numbered list item
Function
Syntax: