gms_script_set_connection_lost

Usage: gms_script_set_connection_lost ( script_id )

Description

Sets the script that should be executed when the connection with server is lost.

The script should take 0 arguments.

Example

//Sets the script scr_connectionlost to be executed when connection is lost.
gms_script_set_connection_lost(scr_connectionlost)

Replies (2)

Last message on 31 Jan 2017

mpgame on 31 Jan 2017, 12:49:22
I set "gms_script_set_connection_lost ( script_id ) " in create event of an object but when that object creates, my script_id will execute quickly, even without losing connection! why?
mpgame on 31 Jan 2017, 12:58:41
Oh I'm sorrry! that was my mistake.