Skybox swapper: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Added infotable and did some cleanup)
Line 1: Line 1:
{{ent not in fgd}}
{{ent not in fgd}}
{{infotable
|skybox_swapper
|img=[[File:Skybox swapper.png]]
|type=e0
|engine=2
|in={{as|since}}
}}
{{Entity|skybox_swapper|since=Alien Swarm|type=e0}}  It is also available in {{tf2|4}}.
{{Entity|skybox_swapper|since=Alien Swarm|type=e0}}  It is also available in {{tf2|4}}.
== Entity description ==
== Entity description ==
Line 5: Line 14:


== Keyvalues ==
== Keyvalues ==
{{KV|Skybox Material Name (SkyboxName)|string|The name of the skybox to change to.}}
{{KV Targetname}}
{{KV Targetname}}
{{KV|Skybox Material Name|string|The name of the skybox to change to.}}


== Inputs ==
== Inputs ==

Revision as of 11:12, 13 October 2023

Icon-NotInFGD.png
This entity is not in the Alien SwarmPortal 2 FGD by default.
See below for instructions on making it available.
skybox_swapper
Skybox swapper.png
TypePoint entity
EngineSource Source
Availability(in all games since Alien Swarm)
 

Template:Entity It is also available in Team Fortress 2 Team Fortress 2.

Entity description

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 or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Skybox Material Name ([todo internal name (i)]) <string>
The name of the skybox to change to.

Inputs

Trigger
Triggers the skybox change.


Outputs

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."
]