func_monitor
Jump to navigation
Jump to search
CFuncMonitor defined in Func_Monitor.cpp
|
func_monitor is an e2 available in all Template:2 and Template:3 games except ![]()
Left 4 Dead series.Template:2 topiconTemplate:3 topicon
- The
{{{engine}}}parameter is inconsistent with the name defined by the {{2}} template. - The
{{{engine1}}}parameter is inconsistent with the name defined by the {{3}} template.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
It displays a real-time scene captured from a point_camera somewhere else in the world.
In
Source for the entity to work, the surface(s) on which the camera view will be displayed must have a material with $basetexture _rt_Camera. Stock materials that work are dev\dev_combinemonitor* and dev\dev_tvmonitor*.
- Include the entity's client .cpp file (found in
\client\hl2\). - Include the entity's server .cpp and .h files (found in
\server\hl2\). #define USE_MONITORSat the top of\client\viewrender.cppand\client\view.cpp.- Fix a multiplayer bug in
CPointCamera::CPointCamera()by settingm_bActiveto true.
Keyvalues
- 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
- Camera name (target) <targetname>
- The camera to render.
Inputs
- SetCamera <targetname>
- Sets the camera to use for this monitor. Takes the name of a point_camera entity in the map.
- Toggle
- Enables the entity if it is disabled, and disables if it is enabled.
- Enable
- Make the entity visible and solid.
- Disable
- Make the entity invisible and non-solid.
See also
- info_camera_link - For rendering point_cameras on models.
- point_camera