Directives

From 3DGE Wiki
Jump to: navigation, search

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:

Note that the # character is not included here because of Wiki formatting rules!

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.