UE2:PowerUp (U2XMP)

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

PowerUp.uc

Properties

Property group 'PowerUp'

bIsStation

Type: bool

True if object is a station

Description

Type: string

Popup description of this PowerUp

EnergyUnits

Type: int

A pickup or station's number of EnergyUnits

HealthUnits

Type: int

A pickup or station's number of HealthUnits

TransferRate

Type: int


Internal variables

LastTransferTime

Type: float

Saves the time of the last Unit transfer

PowerUpOwner

Type: Pawn


TargetPowerSuit

Type: PowerSuit

The PowerSuit that is being manipulated

Default values

Property Value
bMergesCopies True

Functions

Events

PreBeginPlay

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Tick

simulated event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions

ActivateStation

function ActivateStation (Pawn P)


AddUnits

function bool AddUnits (PowerUp PUI)


CalcPowerUp

function int CalcPowerUp (int CalcUnits, float CurrentTime)


CheckStopStation

function CheckStopStation (int MaxUnits, int TargetsCurrentUnits)


DeactivateStation

function DeactivateStation ()


GetDescription

function string GetDescription ()

Overrides: Actor.GetDescription


GiveTo

function GiveTo (Pawn Other, optional bool bDontTryToSwitch)

Overrides: Inventory.GiveTo


IsUsable

function bool IsUsable (Actor Other)

Overrides: Actor.IsUsable


MakeStationEmpty

function MakeStationEmpty ()


OnUnuse

function OnUnuse (Actor Other)

Overrides: Actor.OnUnuse


OnUse

function OnUse (Actor Other)

Overrides: Actor.OnUse


StopStation

function StopStation ()


TickPowerUp

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


TransferPowerUp

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


TransferProperties

function TransferProperties (Pickup PickedUpItem)

Overrides: Inventory.TransferProperties