Hi,
I have some spikes. When the ball collides with them, the ball shall get removed. But it falls through the spikes.

Here my action code:

Code:
var abstand;
ENTITY* ent_piekser;

function kill()
{
	
	while(1)
	{
		abstand = vec_dist(ent_piekser, ent_ball);
		if(abstand = 0)
		{
			ent_remove(ent_ball);
			return;
		}
		wait(1);
	}
}



action piekser()
{
	ent_piekser = me;
	kill();
}



piekser = spikes.

abstand = distance

I included it in the main, and set the action in WED to the model.

Whats the problem here?

regards,
TheShooter

Last edited by TheShooter; 08/24/11 18:59.

Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*