Skip to content

Instantly share code, notes, and snippets.

@jameslkingsley
Created July 29, 2016 14:30
Show Gist options
  • Select an option

  • Save jameslkingsley/c94b20d09b09f7dfea139d30b3de421e to your computer and use it in GitHub Desktop.

Select an option

Save jameslkingsley/c94b20d09b09f7dfea139d30b3de421e to your computer and use it in GitHub Desktop.
// Example usage in objects init box
// null = [this, "Take Docs", "Abu is done...<br/><img image='map.paa'>"] execVM "intel.sqf";
params [
["_intel", objNull],
["_actionText", "Take Intel"],
["_intelContent", ""]
];
if (isNull _intel) exitWith {};
_intel addAction [_actionText, {
params ["_target", "_caller", "_id", "_args"];
_args params ["_content"];
_caller createDiarySubject ["ARC_Intel", "Intel"];
_caller createDiaryRecord ["ARC_Intel", _content];
deleteVehicle _target;
}, [_intelContent]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment