Yes I copied from a project called Zombie or smt like that. Im using as a base to start to understand the engine. Is nice code, I also don't understand why the following part of :

while (me.health > 0)
{
...
}
< --- This following

works, if the while is a cycle that never end, and the condition is true always. thanks for your reply, that code would replace the movement function?