The reason is that temp was a predefined VECTOR in wdl but not in lite-C.
Just write
VECTOR temp; // don't make it a pointer (VECTOR*)
at the start of your script, in your function or directly before the commands and it will work.

Btw. the ".x" suffix is superfluous on VECTORs.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends