From b12f1ff8be37346ec70ab50447c8f03bd9a990e1 Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 2 May 2020 09:35:01 -0400 Subject: add a config flag to allow to local functions to be event handlers --- conf/map/script.conf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'conf') diff --git a/conf/map/script.conf b/conf/map/script.conf index cda25d546..4eb84edf4 100644 --- a/conf/map/script.conf +++ b/conf/map/script.conf @@ -64,6 +64,11 @@ script_configuration: { // "public" keyword should be treated as "private" by default. // Default: true functions_private_by_default: true + + // Specifies whether public functions can be invoked as NPC events. This + // allows, for example, to use a `public function OnDeath { ... }` instead + // of a `OnDeath:` label for mob death events. + functions_as_events: false } import: "conf/import/script.conf" -- cgit v1.2.3-60-g2f50