script_get_name

This function will return the name as a string of the specified script asset. This name is the one that has been specified for the script in the Asset Browser of the main GameMaker window. This function also accepts script functions and method variables.

For more information about scripts, see The Script Editor.

 

Syntax:

script_get_name(scr);

ArgumentTypeDescription
scrScript AssetThe index of the script that you want to get the name of.

 

Returns:

String

 

Example:

scr_name = script_get_name(Help_File);

The above example code will store the name of the indicated script index in the variable "scr_name".