Skip to content

Instantly share code, notes, and snippets.

@JoramD0
JoramD0 / fn_collect.sqf
Last active April 19, 2022 15:16
Arma 3 variable storing concept
// These should be defind on initPlayerLocal or something:
GVAR(playerVariables) = createHashMap;
GVAR(newData) = false;
// Would be called like `["earplugs", [player] call ACEFUNC(hearing,hasEarPlugsIn)] call FUNC(this)`
params ["_type", "_data"];
GVAR(playerVariables) set [_type, _data];
GVAR(newData) = true;
@JoramD0
JoramD0 / readme.md
Last active June 19, 2021 15:53
Emergency 4 ModStart
@JoramD0
JoramD0 / leftPanelClassnames.sqf
Created June 23, 2018 13:34
Arma 3 ACE Arsenal classnameArray
["ace_arsenal_leftPanelFilled", {
params ["_display"];
private _control = _display displayCtrl 13;
"ace_clipboard" callExtension "[";
for "_lbIndex" from 0 to (lbSize _control - 1) do {
private _currentData = _control lbData _lbIndex;