Difference between revisions of "Directives"

From 3DGE Wiki
Jump to: navigation, search
(Directives)
(No difference)

Revision as of 16:07, 8 June 2015

Directives

Directives are lines which begin with a '#' character, immediately followed by the directive name. These are used to specify something very special about the script, e.g. the 3DGE version which the script needs.

Directives should be placed at the beginning of your scripts, before everything else (e.g. start_map). It is OK though to have comments before the directives.

List of commands:

#CLEAR_ALL

  • Clears all previous scripts that might mess up the current one.

#VERSION

  • The version of EDGE that the RTS is for, e.g. "#VERSION 1.29".

#DEFINE

  • This is used to define values to use globally in your script.