This article's documentation is for anything that uses the Source engine. Click here for more information.

Player loadsaved: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(STUB)
No edit summary
 
(9 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{stub}}
{{LanguageBar}}
==Entity Description==
{{TabsBar|main=gs|base=player_loadsaved}}
Load Auto-Saved game
{{CD|CRevertSaved|file1=1}}
==Keyvalues==
{{This is a|logical entity|name=player_loadsaved}} This entity will reload the latest saved game when triggered. Useful for game over screens if an important NPC dies, or a crucial object is lost. Can be used together with {{ent|env_message}} to display an appropriate text message.
* {{KV Targetname}}
 
* '''duration'''
== Keyvalues ==
: <integer> Fade Duration (seconds)
{{KV Targetname}}
* '''holdtime'''
{{KV|Fade Duration (seconds)|intn=duration|string}}
: <integer> Hold Fade (seconds)
{{KV|Hold Fade (seconds)|intn=holdtime|string}}
* '''renderamt'''
{{KV|Fade Alpha|intn=renderamt|int}}
: <[[byte]]> Fade Alpha
{{KV|Fade Color (R G B)|intn=color|color255}}
* '''rendercolor'''
{{KV|Reload delay|intn=loadtime|string}}
: {{color}} Fade Color
 
* '''loadtime'''
== Inputs ==
: <integer> Reload delay
{{I|Reload|Ends this game and reloads}}
==Inputs==
* {{I Targetname}}
* '''Reload'''
: Ends this game and reloads
==Outputs==
* {{O Targetname}}
[[Category:Entities]]

Latest revision as of 08:43, 1 July 2025

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CRevertSaved
CPointEntity
CBaseEntity
C++ player.cpp

player_loadsaved is a logical entity available in all Source Source games. This entity will reload the latest saved game when triggered. Useful for game over screens if an important NPC dies, or a crucial object is lost. Can be used together with env_message to display an appropriate text message.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Fade Duration (seconds) (duration) <string>
Hold Fade (seconds) (holdtime) <string>
Fade Alpha (renderamt) <integer>
Fade Color (R G B) (color) <color255>
Reload delay (loadtime) <string>

Inputs

Reload
Ends this game and reloads