Get state name

Returns a string of the state index of the player.

Syntax
get_state_name( state );

Returns
string

Examples
//debug_draw.gml //draws the player's state: draw_debug_text( x, y, "state: " + get_state_name( state ));