Death message

This call sets the reason the death screen shows.

ScreenFx the reason on the death screen

ScreenFx.SetDeathMessage sets the reason the death screen shows. Call it just before the death screen appears, because the game may replace the text before then.

public static bool SetDeathMessage(string text);
Method Returns What it does
SetDeathMessage(text) bool Sets the reason shown on the death screen.

Things to know

  • The text stays until the game sets it again. The game does that when the player’s stats change. Nothing is saved. (It calls DeathMessage.ChangeDeathMessage. The game calls it from PlayerStatsUI. The death screen is shown by Death (ShowDeathMessage).)

Limits

  • Set your text just before the death screen is shown, or the game may replace it.