Skip to content

Attach Players

Description

Attaches one Player (the Child) to another Player (the Parent). Once attached, the Child will be unable to move freely until detached or teleported away. Multiple children may be attached to the same Parent (but not vice versa).

Snippet

Attach Players(Event Player, Last Created Entity Entity, Vector(0, 0, 0));

Properties

Returns: Void Parameters: ==Child==, ==Parent==, ==Offset==

==Child== Type: Player, Default: Event Player The player that will attach to the parent. This player will be unable to move freely until detached or teleported away.

==Parent== Type: Player, Default: Last Created Entity Entity The player to whom the child will attach. This player’s movement will be unaffected and will determine the child’s position.

==Offset== Type: Position, Default: Vector The coordinates of the child relative to the parent. For example, vect(1,2,0) would be above and to the left of the parent’s head.

Type to search…

↑↓ navigate↵ selectEsc close