O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

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

Drawing a bounding box around pawns

If you've ever played Eidos' excellent Deux Ex before, then you should be very familiar with bounding boxes around objects that your character is facing. We're going to replicate the same effect, but just for pawns. It's easy to alter and add functionality, however, so we really could draw a bounding box around nearly any object in the game.

Drawing a bounding box around pawns

This is great for highlighting objects that you want to point out to the player, or entice them to perform an action, such as pick up an object.

Getting ready

Start by having your IDE open and ready to make some changes. We won't have to create any new classes, as we'll only ...

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