diff options
author | gumi <git@gumi.ca> | 2020-05-02 09:35:01 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-05-03 11:46:22 -0400 |
commit | b12f1ff8be37346ec70ab50447c8f03bd9a990e1 (patch) | |
tree | 3e209166b7982bb065de402a040fc87bc7a928d8 /conf | |
parent | d958a36388644a9e58b63da0458f836d198833c8 (diff) | |
download | hercules-b12f1ff8be37346ec70ab50447c8f03bd9a990e1.tar.gz hercules-b12f1ff8be37346ec70ab50447c8f03bd9a990e1.tar.bz2 hercules-b12f1ff8be37346ec70ab50447c8f03bd9a990e1.tar.xz hercules-b12f1ff8be37346ec70ab50447c8f03bd9a990e1.zip |
add a config flag to allow to local functions to be event handlers
Diffstat (limited to 'conf')
-rw-r--r-- | conf/map/script.conf | 5 |
1 files changed, 5 insertions, 0 deletions
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" |