Info placement helper: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(→‎Keyvalues: added keyvalues from FGD)
Line 2: Line 2:


==Keyvalues==
==Keyvalues==
Note: Incomplete list
{{KV|Radius|float|Radius in which to influence placement.}}
{{KV|Radius|float|Radius in which to influence placement.,}}
{{KV|Proxy Entity Name|targetname|Name of the entity we want to use for our real placement position.}}
{{KV|Attach Entity Name|string|Name of the entity we want force our attachment to. Used to combine objects.}}
{{KV|Use helper's angles|boolean|Placed objects will snap to the angles of the placement helper.}}
{{KV|Use helper's angles|boolean|Placed objects will snap to the angles of the placement helper.}}
{{KV|Force Placement|boolean|Ignore placement rules when placing at this helper.}}
{{KV|Force Placement|boolean|Ignore placement rules when placing at this helper.}}

Revision as of 14:04, 2 June 2012

Template:Portal2 point It is a portal auto aligner. Portals fired close to it will automatically be positioned where this entity is placed. Compare with func_portal_orientation that only controlled the orientation.

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 objects will snap to the angles of the placement helper.
Force Placement ([todo internal name (i)]) <boolean>
Ignore placement rules when placing at this helper.
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