Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building an FPS Game with Unity

You're reading from  Building an FPS Game with Unity

Product type Book
Published in Oct 2015
Publisher
ISBN-13 9781782174806
Pages 326 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Building an FPS Game with Unity
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started on an FPS 2. Building Custom Weapons 3. Prototyping Levels with Prototype 4. Creating Exterior Environments 5. Building Encounters 6. Breathing Life into Levels 7. Adding Polish with ProBuilder 8. Creating a Custom GUI 9. Finalizing Our Project Index

Adding a simple turret enemy


To start off with, UFPS already comes built in with an example enemy that we can work with, that is, a turret that will fire at a player if they get too close. More importantly, the turret is an example of how to damage a player, as well as how the player can damage objects. This will be quite useful once we create enemies. Let's take a look at how it's used in an example level:

  1. From the Project tab, go to the UFPS/Base/Content/Levels/SkyCity folder and then-double click on the UFPS_SkyCity.unity file to open it.

    If you haven't gotten a chance to play this demo map yet, give it a try so that you're more familiar with the stuff that we will be talking about.

    Note

    Notice that in certain areas, there will be security cameras on the walls and ceiling that will fire at you if you come close to them in their range. These are the first things that we are going to look into.

  2. The turrets that show up in this level are named SecurityGun. So, with this information, we can go...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}