ScarDoc

Start typing to search the SCAR reference.

Function
Core

Core_RegisterModule

Registers a script module for delegate invocation. The name should be the prefix used by all of the delegate functions in this module. This needs to be called in *global* scope of a module script with the prefix name of that module; use this instead of Scar_AddInit.

On this page
Core_RegisterModule(name)

Description

For example, if you call Core_RegisterModule(\"MySystem\") then any delegate functions in your script such as \"MySystem_OnGameSetup\" or \"MySystem_OnInit\" will be called at the appropriate time during the game initialization process (after the Project delegates but before the Mission delegates).

Parameters

  • nameStringrequired

Returns

Unknown

Source

Declared in the game's script sources at:

scar/core.scar