Author Topic: Input event activating via global function  (Read 1265 times)

I'm making an onBroadcast input, and I need to know that can only activate by the function broadcast(%name). Is this even possible?

Edit: I checked doSub, but it's like a broadcasting signal, no named bricks, but sends a channel and every brick with onBroadcast will activate.
« Last Edit: November 18, 2010, 06:22:18 PM by Club559 »

you could try looking at VCE, as it uses onvaraibletrue/false, or sub events?






and that changes things, you could loop through every datablock, see if it's a brick, then trigger the events, although i'm not sure if that would be a smart way to do it or not

and that changes things, you could loop through every datablock, see if it's a brick, then trigger the events, although i'm not sure if that would be a smart way to do it or not
Not only do you not go through datablocks, but looping through every single brick could cause some severe lag.
I'm unsure on what proper method could be used, but I'm sure there is one.

i figured it might cause lag :D

Ok... look at my new topic about lists.