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:
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
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
CalcPowerUp
CheckStopStation
DeactivateStation
function DeactivateStation ()
GetDescription
function string GetDescription ()
Overrides: Actor.GetDescription
GiveTo
Overrides: Inventory.GiveTo
IsUsable
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
TransferPowerUp
function int TransferPowerUp (int ToTransfer, int MaxUnits, int TargetsCurrentUnits, float CurrentTime)
TransferProperties
function TransferProperties (Pickup PickedUpItem)
Overrides: Inventory.TransferProperties