Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Func brush
From HalfLife 2 Knowledge Base
Contents |
[edit]
func_brush
Source(core) Solid Entity
[edit]
description
An brush built entity with various features.
[edit]
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Parent parentname(target_destination)
The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent. - Origin (X Y Z) origin(origin)
The position of this entity's center in the world. Rotating entities typically rotate around their origin. - Render Mode rendermode(choices) - default: Used to set a non-standard rendering mode on this entity. See also 'FX Amount' and 'FX Color'.
- 0 - Normal
- 1 - Color
- 2 - Texture
- 3 - Glow
- 4 - Solid
- 5 - Additive
- 7 - Additive Fractional Frame
- 9 - World Space Glow
- 10 - Dont Render
- FX Amount (0 - 255) renderamt(integer) - default: 255
The FX amount is used by the selected Render Mode. - FX Color (R G B) rendercolor(color255) - default: 255 255 255
The FX color is used by the selected Render Mode. - Disable Receiving Shadows disablereceiveshadows(choices)
- 0 - No
- 1 - Yes
- Global Entity Name globalname(string)
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state. - Input Filter InputFilter(choices) - default: Used to specify which inputs this entity will accept.
- 0 - Allow all inputs
- 8 - Ignore Touch/Untouch
- 16 - Ignore Use
- 32 - Ignore All
- Start Disabled StartDisabled(choices)
- 0 - No
- 1 - Yes
- Disable shadows disableshadows(choices)
- 0 - No
- 1 - Yes
- Minimum Light Level _minlight(string)
The minimum level of ambient light that hits this brush. - Solidity Solidity(choices) - default: Used to control the solidity of these brushes.
- 0 - Toggle
- 1 - Never Solid
- 2 - Always Solid
- NPC class excluded from collisions excludednpc(string)
If an NPC class name is specified here, NPCs of that type won't collide with these brushes. - Solid BSP solidbsp(choices) - default: Set this if this brush is in hierarchy with a moving object of some kind, and the player can stand on this brush.
- 0 - No
- 1 - Yes
[edit]
spawn flags
- 2: Ignore player +USE - default: OFF
[edit]
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. - SetParent(string)
Changes the entity's parent in the movement hierarchy. - SetParentAttachment(string)
Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. - ClearParent(void)
Removes this entity from the the movement hierarchy, leaving it free to move independently. - Enable(void)
Enable this entity. - Disable(void)
Disable this entity. - DisableShadow(void)
Turn shadow off. - EnableShadow(void)
Turn shadow on.
[edit]
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.
[edit]
related tutorials
Submit your tutorial for func_brush

