Skip to main content

dcs.register_chunk()

dcs.register_chunk(chunk)

This function registers a Lua chunk to be executed within the DCS World process. The Lua chunk registered with this function can be executed within the DCS World process using either dcs.execute_chunk() or dcs.chunk_executer().

note

While fsmapper uses Lua 5.4, DCS World is built with Lua 5.1. The string passed to this function must comply with Lua 5.1 specification.

Parameters​

ParameterTypeDescription
chunkstringA string representing the Lua chunk

Return Values​

This function returns an ID that uniquely identifies the registered chunk.

See Also​