Thanks! Now I can make a "setEventDisabled" event mod!
(This may take some time...)
Just don't check the box in setEventEnabled, so you don't have to re-invent the wheel you ignorant bastard.
%obj.processInputEvent("OnToolBreak", %client);
What does %client do here? Can it be changed to %brick for example?
%client represents the client who triggered an event, for example, if you open a door, those events "run" under the clicker.
Examples when %client won't change:
I click a brick which launches a projectile that launches to another brick, then the brick that gets hit with it sends another projectile. The projectile would still be considered under the clicker's quota object.
Exceptions:
Vehicles emitters, or items: They use the quota of the brick owner.