Hooks called by Areas API

Summary

Hooks

Called on both realms once the schema has loaded.
Called when a player enters an area of the area type.
Called when a player leaves an area of the area type.

Hooks

AddAreaToolModes(self.tool_modes)

shared plugins/areas/plugin/sh_plugin.lua:98

Called on both realms once the schema has loaded. Add modes to the Area Tool here with mode_list:Add(mode), where a mode is a table with a title, the area type it creates, its convars and its click handlers.

Parameters

  • mode_list Map The Area.tool_modes table

Called from

Call sites

PlayerEnteredArea(actor, area, cur_time)

shared plugins/areas/plugin/lib/sh_areas.lua:262

Called when a player enters an area of the area type. Runs on the server and on the client of that player.

Parameters

  • actor Player The player who has entered the area
  • area Map The area table
  • cur_time Number CurTime() of the check

Call sites

PlayerLeftArea(actor, area, cur_time)

shared plugins/areas/plugin/lib/sh_areas.lua:269

Called when a player leaves an area of the area type. Runs on the server and on the client of that player.

Parameters

  • actor Player The player who has left the area
  • area Map The area table
  • cur_time Number CurTime() of the check

Call sites

Defined in