er2.require 49

Equivalent to default Lua require function, but handles the script paths as local misison paths, to ensure easier file referencing and compatibility with Xbox, Nintendo Switch and PlayStation systems.
External file must be placed within the folder '[mission folder]/scripts/general/' or any subfolder


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1stringThe sub path and file name to load

Examples

No examples available.


Back to Scripting API