How to create trap that kills the player?

How do I create a trap, like a pitfall or some arrow that kills the player whenever he runs into a certain space? It’s a box trigger right?

I created a box trigger in the space I wanted to have the trap, but now I’m stuck in the blueprints. For example, how do I ‘open’ the floor for the player do fall off the level or how do I put some objects flying trhough the wall to hit the player? Sorry for being a noob!

Thanks!

Hi

There are a lot of ways to do that, it depends a lot what you want.
If you want a simple trap on the floor, you could destroy the floor actor piece when the player enters the trigger box, so the floor desapears and the player falls, or you could create a destructible actor from this floor, and when the player enters the trigger box you activate the collision or the gravity of this destructible floor, making it break in a lot of pieaces, so it becomes more realistic.
Check here to see how make destructible actors: Making a Destructible Mesh | Live Training | Unreal Engine - YouTube

To make objects fly from a wall is a little more complicate, you sould check this projectile tutorial here: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums3-_Custom_Projectile

Also, check this Tutorials Playlists, there are a lot of good info here: https://www.youtube.com/playlist?list=PLZlv_N0_O1gaCL2XjKluO7N2Pmmw9pvhE

Thanks a lot man! I’ll try it out!

um im a beginner but i would place a KillZ zone on the place where the trap is and place somthing to mark it
i know there are more advanced stuff out there but i am working on a science fair project right know and cant explore UE a lot

I wanna Make a trap that actually traps an animal for example and then you can loot it. :slight_smile: Is there a blueprint way to this?

yes there is ways to do that but its beyond the scope of this question. ask your own question on the answerhub. it will be complex though and very situation dependent so provide all the information you can