I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:PowerUp (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Inventory >> U2Inventory >> PowerUp
Package: 
U2
Direct subclasses:
EnergyPowerUp, HealthPowerUp, PowerStation
This class in other games:
U2

PowerUp.uc

Properties[edit]

Property group 'PowerUp'[edit]

bIsStation[edit]

Type: bool

True if object is a station

Description[edit]

Type: string

Popup description of this PowerUp

EnergyUnits[edit]

Type: int

A pickup or station's number of EnergyUnits

HealthUnits[edit]

Type: int

A pickup or station's number of HealthUnits

TransferRate[edit]

Type: int


Internal variables[edit]

LastTransferTime[edit]

Type: float

Saves the time of the last Unit transfer

PowerUpOwner[edit]

Type: Pawn


TargetPowerSuit[edit]

Type: PowerSuit

The PowerSuit that is being manipulated

Default values[edit]

Property Value
bMergesCopies True

Functions[edit]

Events[edit]

PreBeginPlay[edit]

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Tick[edit]

simulated event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions[edit]

ActivateStation[edit]

function ActivateStation (Pawn P)


AddUnits[edit]

function bool AddUnits (PowerUp PUI)


CalcPowerUp[edit]

function int CalcPowerUp (int CalcUnits, float CurrentTime)


CheckStopStation[edit]

function CheckStopStation (int MaxUnits, int TargetsCurrentUnits)


DeactivateStation[edit]

function DeactivateStation ()


GetDescription[edit]

function string GetDescription ()

Overrides: Actor.GetDescription


GiveTo[edit]

function GiveTo (Pawn Other, optional bool bDontTryToSwitch)

Overrides: Inventory.GiveTo


IsUsable[edit]

function bool IsUsable (Actor Other)

Overrides: Actor.IsUsable


MakeStationEmpty[edit]

function MakeStationEmpty ()


OnUnuse[edit]

function OnUnuse (Actor Other)

Overrides: Actor.OnUnuse


OnUse[edit]

function OnUse (Actor Other)

Overrides: Actor.OnUse


StopStation[edit]

function StopStation ()


TickPowerUp[edit]

function TickPowerUp (out int UnitsAvailable, int MaxUnits, out int TargetsCurrentUnits)


TransferPowerUp[edit]

function int TransferPowerUp (int ToTransfer, int MaxUnits, int TargetsCurrentUnits, float CurrentTime)


TransferProperties[edit]

function TransferProperties (Pickup PickedUpItem)

Overrides: Inventory.TransferProperties