Skybox swapper: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Note:Due the engine difference, this entity doesn't actually work in
Note:Due the engine difference, this entity doesn't actually work in  Mapbase
 Mapbase
		
	
| SirYodaJedi (talk | contribs) mNo edit summary | SirYodaJedi (talk | contribs)  m (→Keyvalues) | ||
| Line 8: | Line 8: | ||
| == Keyvalues == | == Keyvalues == | ||
| {{KV Targetname}} | {{KV Targetname}} | ||
| {{KV|Skybox Material Name|intn=SkyboxName| | {{KV|Skybox Material Name|intn=SkyboxName|skybox|The name of the skybox to change to.}} | ||
| == Inputs == | == Inputs == | ||
Revision as of 12:06, 26 November 2024
|  Class hierarchy | 
|---|
| CSkyboxSwapper | 
|  skyboxswapper.cpp | 
skybox_swapper  is a   point entity  available in all  Source games since
 Source games since  Alien Swarm.  It is also available in
 Alien Swarm.  It is also available in  Team Fortress 2,
 Team Fortress 2,  Half-Life 2: Deathmatch and
 Half-Life 2: Deathmatch and  Mapbase.
Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality.
 Mapbase.
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
Note:Due the engine difference, this entity doesn't actually work in  Mapbase
 MapbaseKeyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Skybox Material Name (SkyboxName) <sky name>
- The name of the skybox to change to.
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."
]




























