logic_parent

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CLogicParent
CLogicalEntity
CServerOnlyEntity
CBaseEntity
Logic auto.png

logic_parent is a logical entity available in Black Mesa Black Mesa. This entity sets specified parent for specified entity via ParentEntities output. This entity also can teleport child to parent. Useful in some cases, for example, when you need to know, if a child has a parent or not.

Note.pngNote:Doesn't replace SetParent input in this game.

Flags

Remove on fire : [1]
Removes this entity when OnFired output is fired.
Teleport child to parent : [2]
Teleports child to parent's origin. If unchecked, child will save initial position before the input.

Inputs

ParentEntities <stringRedirectInput/string>
Sets specified parent for specified object. The syntax is: ParentName ChildName.
Icon-Important.pngImportant:Can't set attachment point.

Outputs

OnFired <void>
Fired when ParentEntities is successfully fired.