script_get_name

Returns the name of the script with the given index.

Syntax:

GML Code Example

script_get_name(scr);


Argument Description
scr The index of the script that you want to get the name of.


Returns: String


Description

This function will return the name as a string of the specified script. This name is the one that has been specified for the script in the resource tree of the main GameMaker: Studio window. For more information about scripts, see Advanced Use: Scripts.


Example:

GML Code Example

scr_name = script_get_name(scr_Help_File);

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here