Regular API function

simCloseModule

Description Releases resources reserved with the simOpenModule command. This command can only be called from the main script. Call it from the main script in the last simulation pass (usually with sim_handle_all argument). simCloseModule is not available in the C-API. Look at the default main script to get an idea about how to use simOpenModule, simHandleModule and simCloseModule.
C synopsis -
C parameters
-
C return value
-
Lua synopsis
number result=simCloseModule(number sim_handle_all)
number result=simCloseModule(string moduleName)
Lua parameters
sim_handle_all: indicates that all plugins should be closed
moduleName: the name of a specific plugin that should be closed
Lua return values
result: -1 in case of an error, otherwise result is the number of plugins that executed the command.

All regular API functions on one page