Skip to content

Instantly share code, notes, and snippets.

//NONE
float computeDistanceBetweenLocations(struct package_t *a, struct package_t *b)
{
return sqrt((a->loc_x - b->loc_x)*(a->loc_x - b->loc_x) + (a->loc_y - b->loc_y)*(a->loc_y - b->loc_y));
}
// d
float computeDistanceOfRoute(struct package_t *route[])
{
struct package_t origin = {0,0,""};

CONSIDER THIS DEPRECIATED

This gist gives the basics of adding an editable entity, it doesn't make full use of the all avialibe plugins as they seem broken for the author! But its a perfect copy of the basegames setup and should work with those plugins if/when they work in the future.

In order to add any entity to the GM Entity List you must first create Placeable version:

  • Select the prefabs you want to make placeable
=====================================================================
== N:\SteamLibrary\steamapps\common\Arma 3\Arma3_x64.exe
== "N:\SteamLibrary\steamapps\common\Arma 3\Arma3_x64.exe" -noSplash -exThreads=7 -enableHT -showScriptErrors "-mod=N:\SteamLibrary\steamapps\common\Arma 3\!Workshop\@CBA_A3;N:\SteamLibrary\steamapps\common\Arma 3\!Workshop\@RHSAFRF;N:\SteamLibrary\steamapps\common\Arma 3\!Workshop\@ace;N:\SteamLibrary\steamapps\common\Arma 3\!Workshop\@ACE Compat - RHS AFRF" -beservice
Original output filename: Arma3Retail_DX11_x64
Exe timestamp: 2022/01/18 00:20:57
Current time: 2022/01/26 20:06:33
Type: Public
Build: Development