Hello Ottawa and Heinekenbottle.

Thank you very much for both your replies.

@Ottawa: you're right - when I place the exact same definition outside the action, then it works perfectly. That's what I ended up doing (although I like using local variables to make my actions more portable).

@Heinekenbottle: you're right also - if I remove the "*" as you suggest, then the local vector definition seems to work.

I'll admit to being a bit confused as to how we are supposed to define vectors in lite-C:

VECTOR v = {x=0;y=0;z=0;}

or

VECTOR* v = {x=0;y=0;z=0;}

It seems one works for local variables, and the other for global variables. I find the manual could be a little clearer on that point.

Thanks again!

Thomas