layer_get_target_room


描述

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


语法:

layer_get_target_room()


Returns:

Room ID (real)


例如:

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.


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