This is a script to place any simple objects on the map for ArmA 3 RPG Life.
In the past some guys have discussed whether it is possible to plant e.g. trees on a vanilla map without using mods on your server.
I started a research and after some minutes I came up with the command createSimpleObject. It works fine but it is very inconvenient if you plan to plant more objects at once.
The solution is a mod called ACD. Just download and activate it. Then open the ArmA 3 Eden Editor and place objects from side empty -> ACD decorations -> Trees.
side empty -> ACD decorations -> Trees
place the objects in the desired location and select all
Once you finished placing your objects, select all objects and right-click on the selected objects -> Export to script -> as simpleObject.
Export to script -> as simpleObject
Now you copied the objects as simpleObjects in your clipboard. In the next step create a new .sqf file and paste the code from your clipboard. You can now close ArmA 3 and deactivate ACD mod.
A working installation of ArmA Life RPG Framework is required for a successful installation. Modifying the ArmA Life RPG Framework could cause errors – feel free to connect to our discord if you have a problem.
To execute the script on your server, install the cationstudio core system.
Download the newest release and extract the archive. Copy the attached folder "objects" in your “cation” folder that can be found in the root folder (subsequently called <mission>) of your mission.
Open <mission>/cation/cation_functions.cpp and insert
#include "objects\functions.cpp"
and save the file.
Open <mission>/cation/cation_master.cpp and insert
#include "objects\config.cpp"
and save the file.
Open <mission>/cation/cation_remoteExec.cpp and insert
#include "objects\remoteExec.cpp"
and save the file.
Now paste the .sqf file created earlier to <mission>/cation/files and add the filename to the data[] array in <mission>/cation/objects/config.cpp:
data[] = {
"kavalaMarkt",
"treetestTanoa",
"YOURFILENAME"
};
That's it!