Skip to content

Instantly share code, notes, and snippets.

@IntelOrca
Created September 7, 2020 22:36
Show Gist options
  • Save IntelOrca/b28e833990bed120c6c3bcb103315975 to your computer and use it in GitHub Desktop.
Save IntelOrca/b28e833990bed120c6c3bcb103315975 to your computer and use it in GitHub Desktop.
/// <reference path="C:/Users/Ted/Documents/GitHub/openrct2/distribution/openrct2.d.ts" />
var main = function () {
context.subscribe('action.query', function(e) {
console.log("Query Action:");
if (!e.isClientOnly && e.type != 3 && e.type != 4)
console.log(e);
});
context.subscribe('action.execute', function(e) {
console.log("Execute Action:");
if (!e.isClientOnly && e.type != 3 && e.type != 4)
console.log(e);
});
};
registerPlugin({
name: 'Action Hook',
version: '1.0',
authors: ['Ted'],
type: 'local',
main: main
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment