Skip to content

Developer Documentation

Silence edited this page Oct 30, 2023 · 14 revisions

Utility Functions

Export Crate To Arms Dealer

Grabs all the weapons out of a crate, grabs mags for them, then puts it into a formatted config array for the arms dealer (returns into your clipboard)

[_target, "modPrefix", "categoryPrefix"] call A3U_fnc_exportCrate;

You can also have multiple crates and do this to export them one at a time

//crate 1
this addAction ["copy", {[(_this select 0), "RHS", "Rifles"] call A3U_fnc_exportCrate}];
//crate 2
this addAction ["copy", {[(_this select 0), "RHS", "Sniper Rifles"] call A3U_fnc_exportCrate}];

Export Pylon Loadout For Config

(As of 10.2.2, currently 10.2.1)

Grabs the current pylon loadout of an air vehicle and exports it for config (returns into your clipboard)

[_target] call A3U_fnc_exportPylons;

Draw cargo seats of vehicles, with index

(doesn't always work with sci-fi modded vehicles, due to weird setups)

[cursorObject] call A3U_fnc_logisticsGrabSeats;

Logging

["Message", _fncPath] call A3U_fnc_log;

cfgPatches check

["cfgPatchesClass"] call A3U_fnc_hasAddon;

Alternate Syntax

[["cfgPatchesClass1", "cfgPatchesClass2"]] call A3U_fnc_hasAddon;

Weight Test

Logs occurence of each value over 10000 iterations

[_values, _weights] call A3U_fnc_weightTest;

Python Stuff (N/A)

VSCode Stuff

VSCode arma-dev.json

{
    "title": "Antistasi Ultimate",
    "name": "A3U",
    "author": "Antistasi Ultimate Dev Team",
    "website": "",
    "version": "0.0.1",
    "buildPath": "build",
    "privateKey": "",
    "serverDirs": [],
    "serverUse32bit": false,
    "clientDirs": [
        "A3A/addons/config_fixes",
        "A3A/addons/core",
        "A3A/addons/events",
        "A3A/addons/garage",
        "A3A/addons/gui",
        "A3A/addons/hals",
        "A3A/addons/jeroen_arsenal",
        "A3A/addons/logistics",
        "A3A/addons/maps",
        "A3A/addons/patcom",
        "A3A/addons/scrt",
        "A3A/addons/ultimate"
    ],
    "clientMods": [],
    "ftpConnection": {},
    "steamPath": "pathToSteamLibrary"
}
Clone this wiki locally