player_loadsaved

Modified

12-Jul-2023

Player_loadsaved is used to restart map after screen fade and custom on-screen message.

Keyvalues


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of player_loadsaved so other entities can trigger this to restart map.

Fade Duration (seconds) duration : Time, in seconds, the fade effect will fade in.

Hold Fade (seconds) holdtime : Time, in seconds, the fully faded-in screen will stay.

Fade Alpha renderamt : Set how transparent/opaque the effect is at its peak (Hold fade). 0 means transparent. 255 means opaque.

Fade Color (R G B) rendercolor : Fade color to use.

Show Message delay messagetime : Delay after triggering this entity to display text.

Message To Display message : Text to show on screen.

Reload delay loadtime : Delay after triggering this entity to restart level. Note that this time is not calculated after screen finished fading so by setting this value you should consider "Fade Duration" and "Hold Fade Time". E.g. "Fade Duration" is 2 and "Hold Fade Time" is 1.5. Preferable value for reload delay would be 2 + 1.5 = 3.5.