My program doesn't have bugs. It just develops random features.

Legacy talk:TriggeredDeath

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 18:13, 21 October 2016 by SeriousBarbie (Talk | contribs) (moved discussion here; added replacement code for TriggeredDeath)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Ike Bart: I first thought it was something that only works when triggered like the 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 U4et mod for UT.

Wormbo: TriggeredDeath uses the victim's HidePlayer() method after calling Died(), maybe this messes up the Pawn's states.

RenameMe - TriggeredDeath(UT)

BTW - Could we actually create that WikiTag?

Tarquin: Sure. But I thought this was a UT-only class


Replacements

TriggeredDeathSB

/******************************************************************************
Fix for UnrealShare.TriggeredDeath: if touching Actor is a ScriptedPawn, it
will be destroyed.
******************************************************************************/
class TriggeredDeathSB extends TriggeredDeath;
 
auto state Enabled {
	function Touch(Actor Other) {
		Super.Touch(Other);
		if (ScriptedPawn(Other) != None)
			Other.Destroy();
	}
}

Simple replacement for the ScriptedPawn-Does-not-get-killed bug. --SeriousBarbie (talk) 20:13, 21 October 2016 (EDT)