The Mapscene tool: left click adds a mapscene camera point at the user's eyes, and the tool's settings panel lists the points and lets them be deleted. The tool, adding a point and the list of points are all tied to the 'mapscenes' permission.

Summary

Functions

Builds the tool's settings panel: a list of the mapscene points that can be deleted through a right click.

Methods

Adds a mapscene point at the owner's eye position, facing where they are looking.

Functions

TOOL.BuildCPanel(CPanel)

shared plugins/mapscenes/plugin/tools/sh_mapscene.lua:32

Builds the tool's settings panel: a list of the mapscene points that can be deleted through a right click. Adds nothing without the 'mapscenes' permission.

Parameters

  • CPanel Panel the tool's control panel

Methods

Adds a mapscene point at the owner's eye position, facing where they are looking.

Parameters

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

Returns

  • Boolean true if the point was added (always true clientside), nil if the owner is not valid or lacks the 'mapscenes' permission

Defined in