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

UE2:PowerUp (U2)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
U2 Object >> Actor >> Inventory >> PowerUp

Contents

Package: 
U2
Direct subclasses:
AmmoPowerUp, EnergyPowerUp, HealthPowerUp, PowerStation
This class in other games:
U2XMP

PowerUp.uc

[edit] Properties

[edit] Property group 'PowerUp'

[edit] AmmoUnits

Type: int

Percentage of total ammunition this powerup provides

[edit] Description

Type: string

Popup description of this PowerUp

[edit] EnergyUnits

Type: int

A pickup or station's number of EnergyUnits

[edit] HealthUnits

Type: int

A pickup or station's number of HealthUnits

[edit] TransferRate

Type: int


[edit] Internal variables

[edit] LastTransferTime

Type: float

Saves the time of the last Unit transfer

[edit] PowerUpOwner

Type: Pawn


[edit] TargetPowerSuit

Type: PowerSuit

The PowerSuit that is being manipulated

[edit] Default values

Property Value
bMergesCopies True

[edit] Functions

[edit] Events

[edit] PreBeginPlay

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


[edit] Tick

event Tick (float DeltaTime)

Overrides: Actor.Tick


[edit] Other instance functions

[edit] ActivateStation

function ActivateStation (Pawn P)


[edit] AddUnits

function bool AddUnits (PowerUp PUI)


[edit] CalcPowerUp

function float CalcPowerUp (int CalcUnits)


[edit] CheckPowerUpEmpty

function CheckPowerUpEmpty (int UnitsAvailable)


[edit] CheckUserFulfulled

function CheckUserFulfulled (int MaxUnits, int TargetsCurrentUnits)


[edit] DeactivateStation

function DeactivateStation ()


[edit] GiveTo

function GiveTo (Pawn Other)

Overrides: Inventory.GiveTo


[edit] HandlePickupQuery

function bool HandlePickupQuery (Pickup item)

Overrides: Inventory.HandlePickupQuery


[edit] HandlePowerUpEmpty

function HandlePowerUpEmpty ()


[edit] HandleUserFulfilled

function HandleUserFulfilled ()


[edit] IsUsable

function bool IsUsable (Actor Other)


[edit] MakeStationEmpty

function MakeStationEmpty ()


[edit] OnUnuse

function OnUnuse (Actor Other)

Overrides: Actor.OnUnuse


[edit] OnUse

function OnUse (Actor Other)

Overrides: Actor.OnUse


[edit] StopStation

function StopStation ()


[edit] TickPowerUp

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


[edit] TransferProperties

function TransferProperties (Pickup PickedUpItem)


Personal tools