Page 1 of 1

Can you make an actor that only collides with players

Posted: Mon Jan 27, 2020 2:34 am
by Guest
Hi there!

I'm trying to make a fancy elevator that can pass through level geometry but is still usable by the player.
It's a 3d model using radius and height for the collision.
I'd need it to be able to pass through 3d floors and other level geometry but I can't seem to figure out how to do that. It keeps colliding with everything and +NOCLIP and +NOINTERACTION disable collision with the player.
Is this possible?

Thanks in advance!

Re: Can you make an actor that only collides with players

Posted: Mon Jan 27, 2020 2:40 am
by Graf Zahl
You'll have to override the CanCollideWith method in ZScript where you can check if the actor it's colliding with is a player - return true for players and false for non-players.