Posted By: TheShooter
Kill function does not work - 08/24/11 18:59
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:
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
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