Last active
August 30, 2019 05:38
-
-
Save commy2/da0fd9eef31e6b72d0746fe5f0301d2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// init.sqf | |
if (hasInterface) then { | |
superobject addAction [ | |
"Einmalaktion XYZ", | |
{_this remoteExecCall ["mission_fnc_actionXYZ", 2]}, | |
[], | |
1.5, true, true, "", | |
"_target getVariable ['mission_actionXYZEnabled', true];", | |
]; | |
mission_fnc_actionXYZ_local = { | |
params ["_target", "_caller", "_actionId", "_arguments"]; | |
systemChat str _arguments; | |
}; | |
}; | |
if (isServer) then { | |
mission_fnc_actionXYZ = { | |
params ["_target"]; | |
if !(_target getVariable ["mission_actionXYZEnabled", true]) exitWith {}; | |
_target setVariable ["mission_actionXYZEnabled", false, true]; | |
_this remoteExec ["mission_fnc_actionXYZ_local", _target]; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment