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

Env global

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

env_global

Source(core) Point Entity


description

An entity to control a global game state.


properties

  • Name targetname(target_source)
    The name that other entities refer to this entity by.
  • Global State to Set globalstate(choices)
    • "gordon_precriminal" - Gordon pre-criminal
    • "antlion_allied" - Antlions are player allies
    • "player_stealth" - Player in APC is disguised as combine
    • "suit_no_sprint" - Suit sprint function not yet enabled
    • "super_phys_gun" - Super phys gun is enabled
    • "friendly_encounter" - Friendly encounter sequence (lower weapons, etc.)
    • "citizens_passive" - Citizens are *not* player allies (cannot be commanded)
    • "gordon_invulnerable" - Gordon is invulnerable
    • "no_seagulls_on_jeep" - Don't spawn seagulls on the jeep
  • Initial State initialstate(choices)
    • 0 - Off
    • 1 - On
    • 2 - Dead


spawn flags

  • 1: Set Initial State - default: OFF


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.
  • TurnOn(void)
    Set state of global to ON.
  • TurnOff(void)
    Set state of global to OFF.
  • Toggle(void)
    Toggles state of global between ON and OFF.
  • Remove(void)
    Set state of global to DEAD.

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

Submit your tutorial for env_global

Personal tools