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
Parameters
| Parameter | Type | Description |
|---|---|---|
chunk | string | A string representing the Lua chunk |
Return Values
This function returns an ID that uniquely identifies the registered chunk.