Author Topic: A projectile that can only collide with the player (no bricks / environment)?  (Read 2225 times)

The environment question still stands.
what environment question

On the projectile passing through environment.

I don't see why you'd need it to go through the flat ground, since it's not going to be coming back out if it does

I was just pointing out that the armingDelay point was already mentioned. I was about to bring it up as well when I saw Gyt already comment on the matter.

If you set an arming delay, and make it not collide with players, it will pass through everything.

Does nobody here remember how the sport rifle used to work? It had projectiles that did exactly this, it ignored collision with everything except for players. I recall it being taglined as 'super piercing bullets'.
mask is not a thing for projectiles.
collideWithPlayers = false; //assuming you don't want other players to be able to intercept them.
isBallistic = false; //this is default anyways
armingDelay = a number in ms that should be equal to or higher to how long you plan on having it travel;

then just schedule it to explode when it would come close to the player. or whatever.
Except leave collideWithPlayers true and set explodeOnPlayerImpact to true