Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Func areaportalwindow

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

func_areaportalwindow

Source(core) Solid Entity


description

An entity that can be used to optimize the visibility in a map. If you seal off an area with them, then when the viewer moves a certain distance away from them, they will go opaque and the parts inside the area will not be drawn. The 'target' bmodel should enclose the func_areaportal window so no parts of it are culled by the window. If you use the optional foreground bmodel, then it should enclose the 'target' bmodel.


properties

  • Name targetname(target_source)
    The name that other entities refer to this entity by.
  • Rendered Window target(target_destination)
    The name of a brush model to render as the window.
  • Fade Start Distance FadeStartDist(integer) - default: 128
    When the viewer is closer than this distance, the alpha is set to 'TranslucencyLimit'.
  • Fade End Distance FadeDist(integer) - default: 512
    When the viewer is at this distance, the portal becomes solid and closes off.
  • Translucency limit TranslucencyLimit(string) - default: 0.2
    This value limits the translucency of the bmodel and prevents it from becoming invisible when the viewer is right on top of it.
  • Foreground bmodel BackgroundBModel(string)
    (Optional) bmodel that is drawn after the fading bmodel. This model should have alpha in its textures so you can see through it.


spawn flags

none.


inputs

  • Kill(void)
    Removes this entity from the world.
  • KillHierarchy(void)
    Removes this entity and all its children from the world.
  • AddOutput(string)
    Adds an entity I/O connection to this entity. Format
  • FireUser1(void)
    Causes this entity's OnUser1 output to be fired.
  • FireUser2(void)
    Causes this entity's OnUser2 output to be fired.
  • FireUser3(void)
    Causes this entity's OnUser3 output to be fired.
  • FireUser4(void)
    Causes this entity's OnUser4 output to be fired.


outputs

  • OnUser1(void)
    Fired in response to FireUser1 input.
  • OnUser2(void)
    Fired in response to FireUser2 input.
  • OnUser3(void)
    Fired in response to FireUser3 input.
  • OnUser4(void)
    Fired in response to FireUser4 input.


related tutorials

See: func areaportalwindow explained

Submit your tutorial for func_areaportalwindow

Personal tools