Code:
action object()
{
	set(my,INVISIBLE | PASSABLE); // optional
	while(!player) wait(1); //wait for valid pointer
	my.skill1 = 1;
	while(my.skill1)
	{
		if(vec_dist(my.x,player.x) < 64)
		{
			set(pnl_help,SHOW);
			if(key_a || key_b)
			{
				do sth
				my.skill1 = 0;
				reset(pnl_help,SHOW);
			}
		}
		else reset(pnl_help,SHOW);
		wait(1);
	}
	ptr_remove(me);
}



Last edited by Superku; 11/08/11 11:17.

"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