Legacy:RequireScript

From Spherical
Revision as of 02:18, 2 June 2013 by Apollolux (talk | contribs) (created from http://web.archive.org/web/20120327155800/http://spheredev.org/wiki/RequireScript)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The RequireScript(filename) command will do the same thing as the EvaluateScript(filename) command, except it will only allow each filename to be loaded once. The purpose of this is to prevent a particular script from being loaded multiple times, wasting resources and possibly causing other problems, but still giving the programmer the option of using a script which might or might not have been previously loaded. In particular, this is useful if there are multiple programmers working on different systems for a game, and will need to combine them into the final project afterwards, or if the programmer is making generic scripts that will be useful in other games.

Usage

{{{returns}}} [[API:{{{object}}}|{{{object}}}]].RequireScript(filename);


  • param1 type. param1 description
  • param2 type. param2 description
  • paramN type. paramN description

Examples

(examples with syntaxhighlighted code)

Notes

(notes)

See also

  • see also
  • see also
  • see also
  • etc