Function data type is the LUA data type for an actual, well, function. A block of defined code which may perform actions and return variables.
Note: Mentions of LuaFunction are basically the same as Function.
You can declare functions locally, or as normal blocks of code, depending on what the function requires. See each definition in detail before use.
For an example function which uses local functions, see SGroup_ForEach?
-- This is a globally declared function function Test() -- This is a locally decalared function local localfunction = function(var1, var2) -- This code only executes if "localfunction" is called. end end
Data Types
Functions
SCAR Home
Wiki Home