The Door Link tool links doors into groups that are owned, shared and labeled together. The first left click picks the main door of a group, every left click after that links the door the user is looking at to it. Right click takes a door out of its group, or breaks the group up if the door is its main door, and reload forgets the picked door. The tool is tied to the 'manage_doors' permission.

Summary

Methods

Picks the door the owner is looking at as the main door of a group, or links it to the door that has been picked before.
Forgets the door that was picked as the main door of a group.
Takes the door the owner is looking at out of its group, or breaks the group up if the door is its main door.

Methods

TOOL:LeftClick(trace)

shared plugins/doors/plugin/tools/sh_door_link.lua:19

Picks the door the owner is looking at as the main door of a group, or links it to the door that has been picked before.

Parameters

  • trace Map trace result of the tool owner's aim

Returns

  • Boolean true on the client and when a door was picked or linked, false otherwise

Forgets the door that was picked as the main door of a group.

Parameters

  • _trace Map trace result of the tool owner's aim

Returns

  • Boolean true on the client and when a picked door was forgotten, false otherwise

TOOL:RightClick(trace)

shared plugins/doors/plugin/tools/sh_door_link.lua:60

Takes the door the owner is looking at out of its group, or breaks the group up if the door is its main door.

Parameters

  • trace Map trace result of the tool owner's aim

Returns

  • Boolean true on the client and when a door was unlinked, false otherwise

Defined in