trigger_changeparent

A trigger_changeparent gives entities a new parent to move with when you trigger it, or takes their parent away.
Attributes
targetnameTriggering the entity by this name changes the parent. See Common keys.
targetNames the entities that get the new parent, and every entity with this name changes. It also takes a name ending in *, an alias (*name), a member of an info_group, !activator and !caller. See What * means in a name for more details. Here !caller is the trigger_changeparent itself.
m_iszNewParentNames the new parent, which is the first entity with this name. It takes the same kinds of names as Entity to re-parent. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the parent's model.
If you leave this key empty, the entities stop where they are and don't move with anything after that.
Notes
- Each entity keeps its place and angles at the moment of the change. After that, it moves with the new parent from where it is
- If no entity has the name in New parent, nothing changes. With
developer 1set in the console, the console shows a message about it - An entity that can't move with a parent, such as a monster or a
func_train, gets no parent. Withdeveloper 1set in the console, the console says why - A
trigger_changevalueon themovewithkey of an entity does the same
See also
- Moving objects - how Move With works, with examples
trigger_changetarget- changes the Target of an entity in the same way
Changes since 1.38
trigger_changeparentis new in SBO 2.1.0