My program doesn't have bugs. It just develops random features.

UE1:Ammo (U1)

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

Ammo.

Properties[edit]

Property group 'Ammo'[edit]

AmmoAmount[edit]

Type: int

Modifiers: travel


MaxAmmo[edit]

Type: int

Modifiers: travel


ParentAmmo[edit]

Type: class<Ammo>

Class of ammo to be represented in inventory

UsedInWeaponSlot[edit]

Type: byte

Array size: 10


Internal variables[edit]

PAmmo[edit]

Type: Ammo


Default values[edit]

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

Functions[edit]

Events[edit]

BotDesireability[edit]

event float BotDesireability (Pawn Bot)

Overrides: Inventory.BotDesireability


Other instance functions[edit]

AddAmmo[edit]

function bool AddAmmo (int AmmoToAdd)


HandlePickupQuery[edit]

function bool HandlePickupQuery (Inventory Item)

Overrides: Pickup.HandlePickupQuery


SpawnCopy[edit]

function Inventory SpawnCopy (Pawn Other)

Overrides: Pickup.SpawnCopy


UseAmmo[edit]

function bool UseAmmo (int AmountNeeded)