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 6. Weapons

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

  • Creating a gun that fires homing missiles
  • Creating a gun that heals pawns
  • Creating a weapon that can damage over time
  • Adding a flashlight to a weapon
  • Creating an explosive barrel
  • Creating a landmine

Introduction

Weapons in UDK are inventory items which can be handled by the player, and are generally used to fire a projectile. On the surface, the default weapon system found in Unreal Engine 3 may appear to be catered to create various types of guns that are common in most FPS games; but it's actually pretty easy to create various sorts of weapons and usable inventory items, which may be found in other types of games, such as healing projectiles, bombs, landmines, or flashlights, ...

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