Es load

From EventScripts Community Encyclopedia


Overview

Syntax: es_load [scriptname]

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: {{{x}}}

Description

Loads a script addon file from the directory gamedir/addons/eventscripts/scriptname/es_scriptname.txt - load will fail if the script is already loaded or does not exist in that directory. Causes the block load block of the script to be invoked to allow the script addon to initialize.


Parameters

  • scriptname - name of the script to load into memory. If this argument is not provided, es_load provides a list of loaded script addons in the console.


Examples

es_load mugmod
// list to console loaded script addons and their status
es_load


Notes

  • es_load was first introduced with Script Addons in EventScripts v1.0.


See also

External links

es_xload

{{{category}}}

blog comments powered by Disqus