Skybox swapper: Difference between revisions
Jump to navigation
Jump to search
Note:Due the engine difference, this entity doesn't actually work in
Mapbase
No edit summary |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{ent not in fgd}} | {{ent not in fgd}} | ||
{{CD|CSkyboxSwapper|link=/asw|file1=1}} | |||
{{ | |||
| | |||
| | |||
| | |||
}} | |||
{{this is a|point entity|since=Alien Swarm|name=skybox_swapper}} It is also available in {{tf2|4}} and {{mapbase|4}}. | {{this is a|point entity|since=Alien Swarm|name=skybox_swapper}} It is also available in {{tf2|4}} and {{mapbase|4}}. | ||
Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality. | Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality. | ||
{{Note|Due the engine difference, this entity doesn't actually work in {{mapbase|4}}}} | {{Note|Due the engine difference, this entity doesn't actually work in {{mapbase|4}}}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
Line 18: | Line 11: | ||
== Inputs == | == Inputs == | ||
{{ | {{I|Trigger|Triggers the skybox change.}} | ||
==FGD Code== | == FGD Code == | ||
<pre> | <pre> | ||
@PointClass base(Targetname) iconsprite("editor/skybox_swapper.vmt") = skybox_swapper : "An entity that precaches skybox materials and swaps them on trigger." | @PointClass base(Targetname) iconsprite("editor/skybox_swapper.vmt") = skybox_swapper : "An entity that precaches skybox materials and swaps them on trigger." |
Revision as of 05:18, 29 October 2024
![]() |
---|
CSkyboxSwapper |
![]() |
skybox_swapper
is a point entity available in all Source games since
Alien Swarm. It is also available in
Team Fortress 2 and
Mapbase.
Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality.


Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- Trigger
- Triggers the skybox change.
FGD Code
@PointClass base(Targetname) iconsprite("editor/skybox_swapper.vmt") = skybox_swapper : "An entity that precaches skybox materials and swaps them on trigger." [ SkyboxName(string) : "Skybox Material Name" : "" input Trigger(void) : "Swap to this skybox." ]