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
Object >> Actor >> Inventory >> U2Inventory >> PowerUp |
- Package:
- U2
- Direct subclasses:
- EnergyPowerUp, HealthPowerUp, PowerStation
- This class in other games:
- U2
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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]
CheckStopStation[edit]
DeactivateStation[edit]
function DeactivateStation ()
GetDescription[edit]
function string GetDescription ()
Overrides: Actor.GetDescription
GiveTo[edit]
Overrides: Inventory.GiveTo
IsUsable[edit]
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]
TransferPowerUp[edit]
function int TransferPowerUp (int ToTransfer, int MaxUnits, int TargetsCurrentUnits, float CurrentTime)
TransferProperties[edit]
function TransferProperties (Pickup PickedUpItem)
Overrides: Inventory.TransferProperties