Blockland Forums > Modification Help
Event not working
(1/3) > >>
Jasa1:
So I have this simple input event
--- Code: ---registerInputEvent("fxDTSBrick", "onDay", "Self fxDTSBrick");
--- End code ---
Whenever I activate it with brickID.processInputEvent("onDay"); it doesn't do anything at all. Why?
otto-san:
post the onDay function.

odds are something is buggering up in there.
Chrono:

--- Quote from: otto-san on February 18, 2012, 12:12:56 AM ---post the onDay function.

odds are something is buggering up in there.

--- End quote ---
The way he's testing it, doesn't matter if an onDay function even exists.

However, you need to determine what "Self" is through some variable whenever you process the input.
Try testing it through named bricks.
Jasa1:

--- Quote from: Chrono on February 18, 2012, 12:16:02 AM ---However, you need to determine what "Self" is through some variable whenever you process the input.
Try testing it through named bricks.

--- End quote ---
I added some events like onDay >> NAMEDBRICK a >> SetColor >> Blue and triggered it but it still had no effect. I named all the bricks a and they still didn't do anything.
Jasa1:
I added the "Minigame" parameter to the event and now it works.
But for some reason BrickID.processinputevent("onDay", MinigameID); still only triggers events that target a named brick.
Navigation
Message Index
Next page

Go to full version