I'm not sure if anyone mentioned this, but the body-piercing cog from the Millennium tutorial doesnt work. It crashes the game when the projectile hits an enemy (because it doesnt stop creating a new one). I tried changing the Y value to a higher number but it still doesn't work.
I think its because it causes it to create a new template a little bit behind the enemy, but since the enemy is blocking the way, the new projectile explodes instantly and never gets past the enemy (just like firing a projectile in front of a wall). Changing the template of the new projectile causes the new one to explode instantly as well.
I also tried
but it didnt even create a new one.
[This message has been edited by IDJunkguy (edited December 07, 2001).]
I think its because it causes it to create a new template a little bit behind the enemy, but since the enemy is blocking the way, the new projectile explodes instantly and never gets past the enemy (just like firing a projectile in front of a wall). Changing the template of the new projectile causes the new one to explode instantly as well.
I also tried
Code:
lookingvec = GetThingLVec(GetSenderRef()); touched: newproj = CreateThingAtPosNR(projectile, GetThingSector(GetSenderRef()), GetThingPos(GetSenderRef()), '0 0 0'; SetThingLook(newproj, lookingvec);
but it didnt even create a new one.
[This message has been edited by IDJunkguy (edited December 07, 2001).]