This article's documentation is for anything that uses the Source engine. Click here for more information.

point_enable_motion_fixup

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CEnableMotionFixup
CBaseEntity
props.cpp

point_enable_motion_fixup is a point entity available in all Source Source games. 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 and angles of this entity.

PlacementTip.gifPlacement Tip:To be used with prop_physics with flags 'Motion Disabled' and 'Enable motion when grabbed by gravity gun' that is partially inside a wall and meant to be grabbed by gravity gun.
PlacementTip.pngExample:Only used in Half-Life 2 Half-Life 2 map d1_town_01 for saw blade partly inside a wall. Doesn't seem to cause any issues without it though.
Note.pngNote:This entity gets deleted after the prop is fixed-up.
Note.pngNote:This entity is created automatically when prop_physics thrown by gravity gun stick inside a wall. (for example models/props_junk/harpoon002a.mdl and models/props_junk/sawblade001a.mdl)

KeyValues

Name (targetname) <string>
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) <angle>
Angles the motion enabled entity will be set to.

See also