Legacy:UDamagePack: Difference between revisions
From Unreal Wiki, The Unreal Engine Documentation Site
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{classbox| [[Legacy:UT2003|UT2003]] :: [[Legacy:Actor|Actor]] >> [[Legacy:Pickup|Pickup]] >> [[Legacy:TournamentPickup|TournamentPickup]] >> UDamagePack}} | {{classbox| [[Legacy:UT2003|UT2003]] :: [[Legacy:Actor|Actor]] >> [[Legacy:Pickup|Pickup]] >> [[Legacy:TournamentPickup|TournamentPickup]] >> UDamagePack}} | ||
This is the actor | This is the pick-up actor for the damage amplifying power-up. [[Legacy:UDamageCharger|UDamageCharger]] spawns this automatically when the game begins (see [[Legacy:XPickUpBase|xPickUpBase]].PostBeginPlay). | ||
Unline weapons and ammo, this pickup doesn't give players invetory. This is what happens: | |||
# the pickup it calls EnableUDamage() on the touching [[Legacy:Pawn|Pawn]]. | |||
# [[Legacy:XPawn|xPawn]]'s implementation of EnableUDamage() does a number of things: | |||
## spawns a [[Legacy:UDamageTimer|UDamageTimer]], with the Pawn as the owner | |||
## sets the Timer() function on the UDamageTimer | |||
## displays visible effects | |||
# UDamageTimer destroys itself and calls DisableUDamage() on its owner pawn | |||
==Properties == | ==Properties == |
Revision as of 08:06, 16 April 2004
This is the pick-up actor for the damage amplifying power-up. UDamageCharger spawns this automatically when the game begins (see xPickUpBase.PostBeginPlay).
Unline weapons and ammo, this pickup doesn't give players invetory. This is what happens:
- the pickup it calls EnableUDamage() on the touching Pawn.
- xPawn's implementation of EnableUDamage() does a number of things:
- spawns a UDamageTimer, with the Pawn as the owner
- sets the Timer() function on the UDamageTimer
- displays visible effects
- UDamageTimer destroys itself and calls DisableUDamage() on its owner pawn
Properties
Pickup
- bool bInstantRespawn
- The UDamagePack will wait the RespawnTime before spawning a new power up unless this is set to true.
- class<Pickup> InventoryType
- This is the item this Pickup will spawn. (Default set to "None".)
- string PickUpBase
- Default set to "None".
- string PickupForce
- Default set to "UDamagePickup".
- string PickupMessage
- This is a message that will be displayed when a power up is taken.
- string PickupSound
- This is the sound played when a power up is taken.
- float RespawnTime
- The time interval that the UDamagePAck will wait before spawning a new power up.