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

Difference between revisions of "Legacy:TriggeredDeath"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (added hint about ScriptedPawn-bug; moved comments to discussion page)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
 
Any pawn that touches this trigger will be killed.  If the pawn is a player pawn, then a death sequence is activated with optional fog.  At the start of the death sequence, the player loses all items, including the non-throwable items.  During the death sequence, the player has 1 health.  The player can still run around and pick up items during the death sequence.  If the player picks up a [[Legacy:Health|health]] or [[Legacy:TournamentHealth|TournamentHealth]] item, the death sequence ends, but he/she is missing inventory items.
 
Any pawn that touches this trigger will be killed.  If the pawn is a player pawn, then a death sequence is activated with optional fog.  At the start of the death sequence, the player loses all items, including the non-throwable items.  During the death sequence, the player has 1 health.  The player can still run around and pick up items during the death sequence.  If the player picks up a [[Legacy:Health|health]] or [[Legacy:TournamentHealth|TournamentHealth]] item, the death sequence ends, but he/she is missing inventory items.
 +
Due to a bug ScriptedPawns do not get killed. See [[Legacy_talk:TriggeredDeath|discussion page]] for details.
  
 
==Properties ==
 
==Properties ==
  
 
===TriggeredDeath Group ===
 
===TriggeredDeath Group ===
;bool bDestroyItems :If true, destroys all weapons and decorations that enter the collision radius.
+
;bool bDestroyItems :If true, destroys all weapons and decorations that enter the collision radius. Note: ''do not'' use this in a Capture the Flag game, as it will destroy a flag that enters its collision volume and thus make it impossible for either team to score thereafter.
  
 
;float ChangeTime :How long the death sequence takes in seconds.
 
;float ChangeTime :How long the death sequence takes in seconds.
Line 25: Line 26:
  
 
===Hidden===
 
===Hidden===
; float TimePassed :
+
; float TimePassed[8]
; PlayerPawn Victim[8] :  
+
; PlayerPawn Victim[8] : For flashing PlayerPawn's screen the PlayerPawn must be remembered for ''ChangeTime'' seconds. These arrays stores up to 8 references to players and their flashing time.
 
+
==Comments ==
+
 
+
'''Ike Bart:''' I first thought it was something that only works when triggered like the [[Legacy:PressureZone|PressureZone]]
+
 
+
'''Ike Bart:''' For some odd reason, scripted pawns that touch the TriggeredDeath come back as ghosts after you die. The only way to kill them off without using any commands to get rid of pawns is to hit them with certain weapons from the [[Legacy:U4et|U4et]] mod for UT.
+
 
+
'''Wormbo:''' TriggeredDeath uses the victim's HidePlayer() method after calling Died(), maybe this messes up the Pawn's states.
+
 
+
[[Legacy:RenameMe|RenameMe]] - TriggeredDeath(UT)
+
 
+
BTW - Could we actually create that WikiTag?
+
 
+
'''Tarquin:''' Sure. But I thought this was a UT-only class
+
 
+
[[Category:Legacy Class (UT)|{{PAGENAME}}]]
+

Latest revision as of 18:10, 21 October 2016

UT :: Actor (UT) >> Triggers (UT) >> TriggeredDeath (Package: UnrealShare)

Any pawn that touches this trigger will be killed. If the pawn is a player pawn, then a death sequence is activated with optional fog. At the start of the death sequence, the player loses all items, including the non-throwable items. During the death sequence, the player has 1 health. The player can still run around and pick up items during the death sequence. If the player picks up a health or TournamentHealth item, the death sequence ends, but he/she is missing inventory items. Due to a bug ScriptedPawns do not get killed. See discussion page for details.

Properties[edit]

TriggeredDeath Group[edit]

bool bDestroyItems 
If true, destroys all weapons and decorations that enter the collision radius. Note: do not use this in a Capture the Flag game, as it will destroy a flag that enters its collision volume and thus make it impossible for either team to score thereafter.
float ChangeTime 
How long the death sequence takes in seconds.
name DeathName 
When a DamageType such as Burned, Corroded or Drowned is used here, it alters the death message. With nothing here, the death message is the same for falling. (So-and-so left a small crater.)
vector EndFlashFog 
Colored view fog at end of death sequence, similar to the ViewFog in the ZoneInfo (UT) actor.
float EndFlashScale 
If set to a negative value, this makes the scenery darker and the FlashFog more visible as the death sequence ends. At some point, the screen turns totally black.
sound FemaleDeathSound 
Sound used when a female player or bot touches the TriggeredDeath.
sound MaleDeathSound 
Sound used when a male player or bot touches the TriggeredDeath.
vector StartFlashFog 
Colored view fog at start of death sequence.
float StartFlashScale 
This is similar to the EndFlashScale but it affects the initial FlashScale setting.

Hidden[edit]

float TimePassed[8]
PlayerPawn Victim[8] 
For flashing PlayerPawn's screen the PlayerPawn must be remembered for ChangeTime seconds. These arrays stores up to 8 references to players and their flashing time.