AddTriggerEx and local subroutines

Posted by Renny on Sun 12 Aug 2018 03:33 AM — 2 posts, 10,643 views.

Canada #0
In the script tags of my plugin I have a local subroutine that I'm trying to call with a trigger, but it tells me the global variable is nil.

Why can't it see my local function?
Australia Forum Administrator #1
Triggers can't see local functions. You need to remove "local" from the function. Functions are local to the plugin anyway.

(They are compiled/interpreted in separate chunks and local variables don't persist over chunks).