Could somebody explain VCE "functions" to me?
Also, a tip to users with many event add-ons:
Hold ctrl while scrolling to scroll faster. Helps with getting to certain events a lot.
That ctrl tip saved me a lot of time, holy stuff.
Functions work like this:
you state a function by using the VCE_StateFunction output event, which binds all output events which are under the input onVariableFunction to a certain function.
You then use the VCE_CallFunction event to launch the function, and all the events defined within.
example
onActivate self statefunction [derp] [2 4]
onActivate self callfunction [derp] [ ]
onVariableFunction self setLight [players light]
[delay of 100] onVariableFunction self setlight [NONE]
onVariableFunction self callFunction [derp] [(nothing goes here. i know it calls the function on a named brick, but im not sure if it applies the function stated on this brick as "derp" or the one on the named brick called "derp")
Congrats, you just made a strobe.