Skip to content

Instantly share code, notes, and snippets.

@commy2
Last active August 30, 2019 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commy2/7a1026b7c098b461ef416da05f80b4c4 to your computer and use it in GitHub Desktop.
Save commy2/7a1026b7c098b461ef416da05f80b4c4 to your computer and use it in GitHub Desktop.
// init.sqf
if (hasInterface) then {
superobject addAction [
"Einmalaktion XYZ",
{
params ["_target", "_caller", "_actionId", "_arguments"];
_target setVariable ["mission_actionXYZEnabled", false];
systemChat str _arguments;
},
[],
1.5, true, true, "",
"_target getVariable ['mission_actionXYZEnabled', true];",
];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment