room_set_view_enabled

This function enables (true) or disables (false) views in any of the rooms within your game except the current one.

 

Syntax:

room_set_view_enabled(index, val);

ArgumentTypeDescription
indexRoom AssetThe room to set.
valBooleanWhether to enable (true) or disable (false) views in the given room.

 

Returns:

N/A

 

Example:

global.myroom = room_add();
room_set_view_enabled(global.myroom, true);

This will enable views in the room indexed in global.myroom.