layer_get_target_room


Description

This function will return the current room being targeted by the layer functions. See layer_set_target_room() for more information.


Syntax:

layer_get_target_room()


Returns:

Room ID (real)


Example:

if layer_get_target_room() != room
   {
   layer_reset_target_room();
   }
();

The above code checks the current target room and if it is not the current room then the layer target room is reset.


Back: General Layer Functions
next: layer_reset_target_room
© Copyright YoYo Games Ltd. 2018 All Rights Reserved