...
The sequence above is simplified version of what Goth is doing in cam4 – the sequencer also needs to be able to handle function calls, because code is often running in between console messages (eg. to spawn droids, etc).
Sequence.define()
Defines a new sequence. Any number of sequences can be created, both during script initialisation or at any other time.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Sequence.define( name, processor, steps ); |
Parameters
Parameter | Type | Mandatory | Notes | API Version |
---|---|---|---|---|
name | String | A unique name for the sequence, for example "Intro Sequence" | ||
processor | Function | A function that will process steps in the sequence. See "Processor Function" for more info. | ||
steps | Array of Steps | An array containing the steps in the sequence. Also the name of a British pop band from the '90s. |
Anyway, that's the sort of thing Sequence API should handle. Currently working on a prototype...