Hooks called by Shared Flashlight

Summary

Hooks

Called on the server after a player's flashlight has been turned on or off through Player:set_flashlight, whether the shared or the engine flashlight is in use.

Hooks

PlayerFlashlightChanged(self, on)

shared plugins/shared_flashlight/plugin/lib/meta/sh_player.lua:72

Called on the server after a player's flashlight has been turned on or off through Player:set_flashlight, whether the shared or the engine flashlight is in use.

Parameters

  • actor Player The player whose flashlight has changed
  • on Boolean Whether the flashlight is now on

Called from

Call sites

Defined in