Registers the doorparent tool, which sets up door parenting from the tool gun.
Left click makes the door the active parent with /DoorSetParent, or a child of it with /DoorSetChild when a
parent is already active. Right click runs /DoorUnparent and reload runs /DoorResetParent.
Summary
Functions
BuildCPanel(CPanel)shared
Builds the tool menu with the tool's description and usage help.
Methods
LeftClick(tr)shared
Makes the door being looked at the active parent with
DoorSetParent, or a child of the active parent with DoorSetChild when the player already has one.Functions
TOOL.BuildCPanel(CPanel)
shared gamemodes/catwork/plugins/doorcommands/plugin/tools/sh_doorparenting.lua:39Builds the tool menu with the tool's description and usage help.
Parameters
- CPanel
Methods
TOOL:LeftClick(tr)
shared gamemodes/catwork/plugins/doorcommands/plugin/tools/sh_doorparenting.lua:21Makes the door being looked at the active parent with DoorSetParent, or a child of the active
parent with DoorSetChild when the player already has one.
Parameters
- tr