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:
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