In C-Script 'temp' is already a predefined vector, in Lite-C you have to define it. KHMovement was coded in C-Script.