I love the smell of UnrealEd crashing in the morning. – tarquin

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

Property group 'PowerUp'

AmmoUnits

Type: int

Percentage of total ammunition this powerup provides

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

event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions

ActivateStation

function ActivateStation (Pawn P)


AddUnits

function bool AddUnits (PowerUp PUI)


CalcPowerUp

function float CalcPowerUp (int CalcUnits)


CheckPowerUpEmpty

function CheckPowerUpEmpty (int UnitsAvailable)


CheckUserFulfulled

function CheckUserFulfulled (int MaxUnits, int TargetsCurrentUnits)


DeactivateStation

function DeactivateStation ()


GiveTo

function GiveTo (Pawn Other)

Overrides: Inventory.GiveTo


HandlePickupQuery

function bool HandlePickupQuery (Pickup item)

Overrides: Inventory.HandlePickupQuery


HandlePowerUpEmpty

function HandlePowerUpEmpty ()


HandleUserFulfilled

function HandleUserFulfilled ()


IsUsable

function bool IsUsable (Actor Other)


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)


TransferProperties

function TransferProperties (Pickup PickedUpItem)