hi!

It crashes when i use this action on one of my models:
-----------------------------------
action friend_move()
{
my = me;
my.HEALTH = 100;


while(my.HEALTH > 0)
{

if(vec_dist(my.x, player.x) < 900 && player.HEALTH > 0)
{
}

wait(1);
}
}
------------------------------------------

I can't find the problem

why don't it work?


thanks!


- Muhsin Kaymak


Come and play my new browsergame - Valley Of Wolves:

http://www.mafiacreator.com/ValleyOfWolves

Hurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!