Always snap to grid

UE2:PowerUp (U2)

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

PowerUp.uc

Properties[edit]

Property group 'PowerUp'[edit]

AmmoUnits[edit]

Type: int

Percentage of total ammunition this powerup provides

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]

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 float CalcPowerUp (int CalcUnits)


CheckPowerUpEmpty[edit]

function CheckPowerUpEmpty (int UnitsAvailable)


CheckUserFulfulled[edit]

function CheckUserFulfulled (int MaxUnits, int TargetsCurrentUnits)


DeactivateStation[edit]

function DeactivateStation ()


GiveTo[edit]

function GiveTo (Pawn Other)

Overrides: Inventory.GiveTo


HandlePickupQuery[edit]

function bool HandlePickupQuery (Pickup item)

Overrides: Inventory.HandlePickupQuery


HandlePowerUpEmpty[edit]

function HandlePowerUpEmpty ()


HandleUserFulfilled[edit]

function HandleUserFulfilled ()


IsUsable[edit]

function bool IsUsable (Actor Other)


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)


TransferProperties[edit]

function TransferProperties (Pickup PickedUpItem)