| Home Page | Recent Changes | Preferences

Pawn (UT)/Inventory

Actor >> Pawn (UT) / Inventory Functions

Inventory Related Functions

function bool AddInventory( Inventory (UT) NewItem )
This function adds the item passed to the function to the pawn's inventory if the item is not already within the inventory. The function returns true if the item was added to the inventory.
function float AdjustDesireFor( Inventory (UT) Inv )
This function is used to adjust the pawn's attraction to a particular item. It is not clear whether the item passed to the function is available as a pickup or carried within the bot's inventory.
function ChangedWeapon()
This function is called when the pawn has decided to change its weapon.
function bool DeleteInventory( Inventory (UT) Item )
This function removes the item passed from the pawn's inventory. The function returns true if the item was removed from the inventory, and false if not.
function Inventory (UT) FindInventoryType( class DesiredClass )
This function will return a reference to an Inventory (UT) item of the specified class or None.
exec function NextItem()
This function selects the next item in the inventory.
function TossWeapon()
Throws the current weapon away.

See Also

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In