gms_script_set_session_change

Usage: gms_script_set_session_change ( script_id )

Description

Sets the script that will be called when the player's session_id changes.

The script script_id should take 1 argument.
1: The new session_id

Replies (2)

Last message on 22 Mar 2017

Dublann on 15 Mar 2017, 20:06:23
Hi Size,

To use it, should be like this?
somewhere in the code
gms_script_set_session_change(scr_session)


scr_session
argument0=1


Because it is connected to a random session id instead of the session 1.

THX
Size43 (Administrator) on 22 Mar 2017, 18:50:20
Session IDs are random, you can only change the session type (when creating a new session).