O'Reilly logo

Unreal Engine Game Development Blueprints by Nicola Valcasara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Killer objects

Let's add some dangerous objects for the player. The first one is an easier version of the KillZ volume. Create a new Blueprint extending an Actor and call it KillVolume. Add a box collision on the Viewport and extend its onActorBeginOverlap method with the KillPlayer function we created earlier as single node. You can understand the advantages of the function libraries now:

Killer objects

Duplicate this Blueprint and call it RollingBall. Change the collision box with a sphere and add a Sphere mesh with enabled physic. Those dangerous balls will be thrown down a hill ready to kill the player. Don't forget to choose OverlapOnlyPawn from the Collision ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required