HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Inline local variables for triggers?

03-12-2004, 04:51 PM#1
Alfryd
I was just wondering, in the function signature for:

TriggerAddAction(trigger whichtrigger, code callback)

If it's possible to add literal code in place of the 'code callback' variable, rather than a 'function callbackfunction'. If so, is it possible for this code to use local variables inherent to whatever function called TriggerAddAction? Thanks for your time...
03-12-2004, 05:07 PM#2
Vidstige
I am pretty convinced that it won't work.
03-13-2004, 12:40 AM#3
weaaddar
from my test
local code c=function foo
would crash.