Let's say I want to make a special kind of Replicator. For instance a panning replicator that pans all its replicated Sounds from left to right. I do this kind of thing a lot so thought it would be useful to encapsulate. (It was also the exercise we tried in the Kata tonight).
This seems kind of easy at first. I get a Replicator and a Pan Sound and put some expression in the Pan parameter using ?VoiceNumber etc.
But when I try to encapsulate it I get stuck. In the Replicator I put "?Number" in its Number parameter field. Then the class editor asks me to enter a value for ?Number. If I put 0 (zero), I get no replicatedSound parameter in my new class. If I put 1 for ?Number, I get two Sound parameters, "ReplicatedSound" and "ReplicatedSound_1".
I tried adding "?replicatedSound" to the SpecialEvents list, but that didn't work.
I tried using a Script to assemble the Sound, like this:
But that didn't work either.
So how would I encapsulate my own kind of Replicator?