This article's documentation is for Source 2. Click here for more information.

Env decal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Create page)
 
No edit summary
Line 1: Line 1:
{{tabs|env decal|goldsrc=1|source2=1|custom1=info_projecteddecal|custom1alt=Source Engine|main=source2}}
{{this is a|point entity|name=env_decal|engine=Source 2}} It is a simple projected decal entity.
{{this is a|point entity|name=env_decal|engine=Source 2}} It is a simple projected decal entity.



Revision as of 09:32, 1 September 2024

env_decal is a point entity available in all Source 2 Source 2 games. It is a simple projected decal entity.


Keyvalues

Decal Material (material) <material>
Decal Width (width) <float>
Decal Height (height) <float>
Decal Depth (depth) <float>
Render Order (RenderOrder) <integer>
Project on World (projectonworld) <boolean>
Project on Characters (projectoncharacters) <boolean>
Project on Water (projectonwater) <boolean>
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

Inputs

Base:

RunScriptFile
Load and execute a script file.
RunScriptCode
Execute a fragment of script code.
CallScriptFunction
Call a script function.
CallPrivateScriptFunction
Calls a script function from this entity's private script scope.
CallGlobalScriptFunction
Calls a script function in the global script scope.
Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
AddOutput
Adds an entity I/O connection to this entity. Parameter format: OutputName→TargetName→InputName→Parameter→Delay→MaxRefires
FireUser1 to FireUser4
Fires the respectiveOnUseroutputs; see User Inputs and Outputs.

Outputs