Point enable motion fixup: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Template:in code -> Template:code class.)
(-added class hierarchy, entity template)
Line 1: Line 1:
{{base point|point_enable_motion_fixup}}
{{CD|CEnableMotionFixup|file1=props.cpp}}
{{entity|type=e0|point_enable_motion_fixup}}
It is used to move a motion-disabled prop when it enables motion. Parent this entity to the prop, and when the prop has its motion enabled, it will immediately teleport to the origin of this entity.  
It is used to move a motion-disabled prop when it enables motion. Parent this entity to the prop, and when the prop has its motion enabled, it will immediately teleport to the origin of this entity.  


{{code class|CEnableMotionFixup|props.cpp}}


==KeyValues==
==KeyValues==
{{KV Targetname}}
{{KV Parentname}}
{{KV Parentname}}
{{KV Angles}}


==Inputs==
==Inputs==
{{I Parentname}}
{{I Parentname}}

Revision as of 09:03, 22 June 2023

C++ Class hierarchy
CEnableMotionFixup
CBaseEntity
C++ props.cpp

Template:Entity It is used to move a motion-disabled prop when it enables motion. Parent this entity to the prop, and when the prop has its motion enabled, it will immediately teleport to the origin of this entity.


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.