Simple physics brush: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Emphasized the fact this is broken when used in Hammer)
m (removed {{DISPLAYTITLE}}, covered by the base brush template)
Line 1: Line 1:
{{DISPLAYTITLE:simple_physics_brush}}
{{stub}}
{{stub}}
{{ent not in fgd}}
{{ent not in fgd}}

Revision as of 04:25, 1 August 2018

Stub

This article or section is a stub. You can help by expanding it.

Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.

Template:Base brush

Entity description

A simple physics brush with no unique properties. Brush entities converted by phys_convert are turned into this entity. Doesn't have any physics when spawned by other means.

FGD Code

Warning.pngWarning:This entity is not designed to be directly used in Hammer and will spawn suspended in mid-air. There is no known way to fix this outside of modifying the code and you would most likely be better off using a phys_convert on a func_brush.
@SolidClass base(Targetname, Parentname) = simple_physics_brush
[
]

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

Outputs

See Also