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

Chapter 8. Miscellaneous Recipes

In this chapter, we will be covering the following recipes:

  • Creating an army of companions
  • Having enemies flash quickly as their health decreases
  • Creating a crosshair that uses our weapon's trace
  • Changing the crosshair color when aiming at a pawn
  • Drawing a debug screen
  • Drawing a bounding box around pawns

Introduction

In the previous chapters, we've covered topics that ranged from weapons and navigation, to a heads-up display and AI. In this chapter, our recipes are going to cover things that may not necessarily fit in one particular chapter, but are still very valuable in a number of applications.

We'll go over a new scheme for aiming our weapons and drawing a crosshair, as well as allowing our pawn to flash continuously ...

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