Skip to content

ModAPI.require(String componentName) ​

This method is used to tell ModAPI that a global needs to be generated.

Arguments: ​

(String) componentName ​

This argument is used to get which global object needs generating:

It is always equal to the identifier of the global. ie: ModAPI.player's identifier is player.