Author Topic: process(Input)EventLine  (Read 598 times)

I don't want to make it myself, because I'm sure I'll take the long way around.

It'd work like processInputEvent, except it'd do processEventLine.

I can't explain much more, but I need a basic idea. All I got is the %brick.var's for events, %brick.serializeEvent(ToString)(%eventLine); , and %brick.dumpEvents();


This is not in requests because I could do this myself is someone told me a guideline...like doing how I said, following the brick's vars in a cycle script and...stuff...

All that %brick.processInputEvent does is call/schedule (through the engine, not scripts for efficiency) the relevant output events on the brick (through loops or whatever) and set a "client" variable for it.

Processing the general output events might go something like this:

call(Target Class::Output Name,Target Object,[arg0,...argN],[activating client if the output has "appendclient" on it]);

I'm not sure you can actually call Class:: functions through call(), try this as well:

Target Object.call(Output Name,[arg0,...argN],[activating client if the output has "appendclient" on it]);

The general arguments would be what you set for the brick normally through the GUI (the direction the projectile goes in, type of projectile, etc.), stored in the variables, and you would have to provide the target object(s with named brick) and activating client through whatever method.
« Last Edit: September 07, 2008, 02:10:28 AM by Space Guy »

Considering the variables needed to know what a line does are still there on the brick....can't this still be done in script? I can throw something together real quick and post it...

Yes, if you just want to directly call an event, then the call function should work fine. What I meant was that scheduled events ("delays") would be more efficient done through the engine rather than scripting.

You could do this for me...? I don't feel up to checking brick vars, listing and retrieving, etc etc...

I'll give you full credit, this will replace ifPrintThenRelay to just ifPrint in my PrintEvents.