NPCs [1 of 3] - Inventory
DeX@planetdeusex.com

 

NPCs (Non playing characters) are a large part of Deus Ex. Here you'll learn how to add them and add things to their inventory.
Green Text is stuff you can click on or select in UnrealEd
Blue Text is stuff you have to type.

*Note* This tutorial assumes you've done the Getting started with UnrealEd, the Deus Ex level editor the texturing and the objects tutorials.

1. Launch UnrealEd and get to the main screen. Build a large box (512*1024*1024), that has some lights, a player start and a DeusExlevelinfo in it. Texture it and rebuild your geometry.

2.  To place an NPC Go to Pawn -> ScriptedPawn. Then you have a choice, I chose the NSF terrorist from the HumanMilitary menu. Add this pawn (or NPC) to you map just like you would with an object.

Select a pawn from the list

3. Now go to the NPC's properties and expand Inventory -> Initial Inventory -> [0]. The numbers 0 to 7 are slots in an NPC's inventory. Each different item takes up one slot. Select Inventory as in the screenshot.


Inventory slot [0] is selected but nothing is in it.

4. To add an item to an empty slot we must first find it in the class browser. Go to Inventory -> Weapon -> DeusExWeapon and select WeaponPistol.


5. Secondly go back to the NPC properties and if you have Inventory selected (under Count), there should be a button on the left called Use. Click it and the pistol should appear in the slot.


A pistol has been inserted into inventroy slot [0].

6. Now you'll want to give our terrorist some ammo. It works in the same way except you have to use a different inventory slot. Go to Inventory -> Pickup -> Ammo -> DeusExAmmo. Then select Ammo10mm.


You'll have to choose the right ammo from the partly hidden list. Click here to view a list of weapons and corresponding ammo

7. Now in the same way as with the weapon, expand slot [1], select Inventory and click Use. You can change the Count value depending on how many boxes of ammo (6 rounds in each 10mm box) you want.

8. Now close the properties screen. Place a weapon or crate on the floor near of you. Rebuild the level, save and play it. But what's wrong? The terrorist won't attack you. Check out the next tutorial on alliances.

 

Send DeX an e-mail   ---   DeX@planetdeusex.com