Template:PreservedEnt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Templates]]
[[Category:Templates]]
<onlyinclude><includeonly>{{#switch: {{ROOTPAGENAME}}
<onlyinclude><includeonly>{{#switch: {{ROOTPAGENAME}}
|#default={{Note|This is a [[s_PreserveEnts|preserved entity]] in {{PreservedEnt/switch|{{{1|{{SUBPAGENAME}}}}}}}.
|#default={{Note|This is a [[s_PreserveEnts|preserved entity]]{{#ifeq|{{{1}}}|all||&nbsp;in {{PreservedEnt/switch|{{{1|{{SUBPAGENAME}}}}}}}}}.
* On a new round entities with this classname will '''intentionally not reset'''. You can use {{ent|logic_auto}} to emulate resetting it.
* On a new round entities with this classname will '''intentionally not reset'''. You can use {{ent|logic_auto}} to emulate resetting it.
* <tt>Kill</tt>ing it removes it forever, as '''it is not respawned''' on a new round.
* <tt>Kill</tt>ing it removes it forever, as '''it is not respawned''' on a new round.

Revision as of 02:40, 27 July 2024

{{SUBPAGENAME}} is automatically filled as first parameter if it's not specified

Wikitext Result
{{PreservedEnt | player}}
Note.pngNote:This is a preserved entity{{#ifeq|player|all
 in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Alien SwarmAlien Swarm: Reactive DropPortal 2Counter-Strike: Global Offensive}}.
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non preserved entities may have undesirable effects.