12-Jul-2023
Entity that acts like env_render but applied render settings will be seen only by certain players. This allows you to make entities be seen by players differently (e.g. visible only for some players).
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_individual so other entities can trigger it to apply render mode. Depending on trigger use-type: 'On' or 'Toggle'- apply render settings, 'Off'- revert render settings. Can be kill-targeted and already applied render settings are reverted.
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".
Entity to affect target : Entity to change appearance of.
Player to affect netname : Player's targetname that will see the effect of this entity.
Entity to copy from message : Entity to copy render values which will be applied to target entity. 'Use Entity to copy from' flag must be selected for this to take effect.
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 : Does not work.
32 : Start On : Apply settings at the map start.
64 : Affect Activator (ignore netname) : Instead of affecting players with targetnames specified in 'target' field, affect the player who activated the script (e.g. through button or trigger).
128 : Use Entity to copy from : Make use of 'Entity to copy from' keyvalue, ignoring manually typed render values.
2048 : Not in Deathmatch : Obsolete in Sven Co-op. Makes the entity don't appear in Multiplayer Games.
Once applied, entity appearance for affected players won't change even if players gets respawned with new targetname.
Entities that have their appearance changed will revert back to the original render settings if the env_render_individual that applied the rendering is removed from the game, e.g. via killtarget.