Gah - a solution with more questions. – EntropicLqd

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, 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)