Author Topic: Event System - Register Inputs/Outputs  (Read 31420 times)

The "0" in "paintColor" most likely has something to do with the default color in the box. Why? Red is the first color in your list of paints and almost every event with the color box has red as the default color.

What do you mean? I still dont understand...


The "0" in "paintColor" most likely has something to do with the default color in the box. Why? Red is the first color in your list of paints and almost every event with the color box has red as the default color.
Or it could be whether or not to include transparent colors. Though I'm not sure if any of the default events restrict transparent colors.

Thanks! Now I can make a "setEventDisabled" event mod!
(This may take some time...)

Code: [Select]
%obj.processInputEvent("OnToolBreak", %client);
What does %client do here? Can it be changed to %brick for example?

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.

Code: [Select]
%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.

Ok, but can I change %client to %brick or %trigger or something? Thanks.

Ok, but can I change %client to %brick or %trigger or something? Thanks.
No.

Do you mind if you tell me what you think would happen if you change it to %brick or something, so that I can help you further?

I was just curious if something other than a client could trigger an event.

I was just curious if something other than a client could trigger an event.
Ah, I actually thought that you didn't know what you were talking about.

No, you can't.

Thanks, now I won't waste an hour experimenting...

I was just curious if something other than a client could trigger an event.

Relays could and such, but not in the way you're suggesting.