The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE1:Ammo (UT)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT Object >> Actor >> Inventory >> Pickup >> Ammo
Package: 
Engine
Direct subclasses:
ASMDAmmo, FlakBox, NullAmmo, RazorAmmo, RifleAmmo, RocketCan, Shellbox, Shells, Sludge, StingerAmmo, TournamentAmmo
This class in other games:
RTNP, U1, U2XMP, UE2Runtime, UT2003, UT2004

Ammo.

Properties

Property group 'Ammo'

AmmoAmount

Type: int

Modifiers: travel


MaxAmmo

Type: int

Modifiers: travel


ParentAmmo

Type: class<Ammo>

Class of ammo to be represented in inventory

UsedInWeaponSlot

Type: byte

Array size: 10


Internal variables

PAmmo

Type: Ammo


Default values

Property Value
bCollideActors False
MaxDesireability 0.2
PickupMessage "You picked up some ammo."
RespawnTime 30.0
Texture Texture'Engine.S_Ammo'

Functions

Events

BotDesireability

event float BotDesireability (Pawn Bot)

Overrides: Inventory.BotDesireability


Other instance functions

AddAmmo

function bool AddAmmo (int AmmoToAdd)


HandlePickupQuery

function bool HandlePickupQuery (Inventory Item)

Overrides: Pickup.HandlePickupQuery


SpawnCopy

function Inventory SpawnCopy (Pawn Other)

Overrides: Pickup.SpawnCopy


UseAmmo

function bool UseAmmo (int AmountNeeded)