Hello, I am trying to make a mod that allows a player to perform an action if the player is in a certain room definition (ex: church, grocery, livingroom, etc).
I've got my idea from Hydrocraft and its' code :
if not player:isOutside() then
player:Say("There are no flora indoors.");
My question is, is there a method that I can use to check if the player is in a certain room? maybe player:isRoom(grocery) type of thing?
Thanks in advance.