Info placement helper

From Valve Developer Community
Revision as of 19:22, 9 December 2019 by Luke18033 (talk | contribs) (Rewrite description)
Jump to navigation Jump to search

Template:Portal2 point This entity is a portal auto aligner. Portals fired within the entity's radius will automatically be positioned at the entity's origin. After a placement helper has been used, it will temporarily enter a "cooldown" period, during which it will not work (unless Force Placement is set to Yes). Compare with func_portal_orientation that only controlled the orientation.

Orientation is easily controlled. On the entity viewmodel in the 3-D view, make sure the red arrow is oriented pointing away from the face it is on. If "use helper's angles" is turned on, portals will be oriented with their top facing in the direction the blue arrow points.

Tip.pngTip:TeamSpen210's Hammer Addons include a custom model for this entity, accurately showing the portal's size and orientation.

It helps if you use a portal indicator texture or decal along with this entity.

Keyvalues

Radius ([todo internal name (i)]) <float>
Radius in which to influence placement.
Proxy Entity Name ([todo internal name (i)]) <targetname>
Name of the entity we want to use for our real placement position.
Attach Entity Name ([todo internal name (i)]) <string>
Name of the entity we want force our attachment to. Used to combine objects.
Use helper's angles ([todo internal name (i)]) <boolean>
Placed portals will snap to the angles of the placement helper.
Force Placement ([todo internal name (i)]) <boolean>
Disable the "cooldown" period after the placement helper is used, preventing the player from offsetting portals.
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.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

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.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnObjectPlaced
An object has been successfully placed using us as a guide.
OnObjectPlacedSize <integerRedirectInput/integer>
When an object is successfully placed, this sends the scale level as an out value