Logic parent: Difference between revisions
Jump to navigation
Jump to search
MyGamepedia (talk | contribs) No edit summary |
MyGamepedia (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{CDA|CLogicParent|CLogicalEntity|CServerOnlyEntity|CBaseEntity|}} | {{CDA|CLogicParent|CLogicalEntity|CServerOnlyEntity|CBaseEntity|}} | ||
{{This is a|logical entity|name=logic_parent|game=Black Mesa|sprite=logic_auto.png}} This entity sets specified parent | {{This is a|logical entity|name=logic_parent|game=Black Mesa|sprite=logic_auto.png}} This entity sets specified parent for specified entity via <code>ParentEntities</code> output. This entity also can teleport child to parent. Doesn't replace <code>SetParent</code> input, may be useful in some cases (for example when you need to know, if a child has a parent or not). | ||
Revision as of 09:43, 8 July 2025
| CLogicParent |

logic_parent is a logical entity available in
Black Mesa. This entity sets specified parent for specified entity via ParentEntities output. This entity also can teleport child to parent. Doesn't replace SetParent input, may be useful in some cases (for example when you need to know, if a child has a parent or not).
Flags
- Remove on fire : [1]
- Removes this entity when
OnFiredoutput is fired.
- Teleport child to parent : [2]
- Teleports child to parent origin. If unchecked, child will save initial position.
Inputs
- ParentEntities <string>
- Sets specified parent for specified object. Can't set attachment point. The syntax is: ParentName ChildName.
Outputs
- OnFired <void>
- Fired when
ParentEntitiesis successfully fired.