Author Topic: OnEventActivate  (Read 945 times)

if anyone could create some input and output settings for an event that would not trigger unless aother event(on named brick etc.) is triggered.. would make life waaay easir

on activate -> named brick -> ?
?

Brick 1: onActivate -> namedBrick( Brick2) -> setEventEnabled -> 0, yes
Brick 2: onActivate -> self -> whatever event
AND
onActivate -> self -> setEventEnabled -> 0, no

When you click on brick 1, it will enable the event for brick 2. Clicking brick 2 will perform the event and disable it.

well lemme rephrase it to OnEventActivate.. so when a certain event happens on a certain brick.. it causes the corresponding brick set to "OnEventActivate" will now activate..maybe even to go as far as activating paramaters like 0 1 2 3 etc.

onActivate -> named brick -> your event

Just like tails said

well lemme rephrase it to OnEventActivate.. so when a certain event happens on a certain brick.. it causes the corresponding brick set to "OnEventActivate" will now activate..maybe even to go as far as activating paramaters like 0 1 2 3 etc.
I think you essentially described "ToggleEventEnabled"
It's a powerful output that lets you toggle the enable/enable check in the events dialog.

Brick 1: onActivate -> namedBrick( Brick2) -> setEventEnabled -> 0, yes
Brick 2: onActivate -> self -> whatever event
AND
onActivate -> self -> setEventEnabled -> 0, no

When you click on brick 1, it will enable the event for brick 2. Clicking brick 2 will perform the event and disable it.

well ive made coded doors etc. using this method but i mean more like only having to name a brick lets say "light" then when ur button triggers "light" all other bricks set to "OnEventActivate" will now activate due to the lights event activating