Hi Loremage,
Just make sure you are setting your ‘TargetDummy’ to replicate in its Class Defaults details, and make sure your vector paramater name is correct within your material. Your code pretty much worked for me. You would know better than me, but i don’t think you will need to replicate that variable.
If you haven’t found this [link text][1] resource before, i recommend reading it through.