Can you make an actor that only collides with players

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
Guest

Can you make an actor that only collides with players

Post 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!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

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

Post 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.
Post Reply

Return to “Assets (and other stuff)”