12-Jul-2023
Point entity which allows you to change render-mode, -fx, -amount and -color of another entity. This entity supports use of !activator and !caller.
Keyvalues |
OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.
Name targetname : Set name of env_render so other entities can trigger it to apply render mode. Every trigger use-type works uniformly. Can be kill-targeted but already applied render settings stays.
Target target : Name of entity to trigger (fire). Which function relates to it depends on the respective entity. Most will just trigger their target, while others will perform actions on their target or use it as a reference for other activities. Often, multiple entities by the same name may be targeted. Most entities need no target, but having one is essential for most logic entities and basic trigger-systems.
Render FX renderfx : Set custom render FX effect. Only works when "Render Mode" is set to different than 'Normal'
Render Mode rendermode : Render mode determines how this entity is rendered.
FX Amount (1 - 255) renderamt : Render amount to use when other than "Render Mode" 'Normal' is used.
FX Color (R G B) rendercolor : Used with "Render Mode" 'Color' and 'Glow' to set color. Also sets color of 'Glow Shell' "Render Mode".
radius (0 disables) armorvalue : Set the radius, in units, in which to search for the env_render's targets. Set this to 0 if you do not require the targets to be in a specific radius, but anywhere on the map.
1 : No Renderfx : If set, the env_render won't change its targets render-fx.
2 : No Renderamt : If set, the env_render won't change its targets render-amt.
4 : No Rendermode : If set, the env_render won't change its targets render-mode.
8 : No Rendercolor : If set, the env_render won't change its targets render-color.
16 : Auto Apply : If set, the env_render will search for its target within the provided radius and apply the changes to every valid entity found, whenever it is found, regularly instead of only when triggered.
2048 : Not in Deathmatch : Obsolete in Sven Co-op. Makes the entity don't appear in Multiplayer Games.