okay so im trying to add an object in a region that deletes itsself after you leave for example fightcaves, only you can be there and once you leave its deleted from the world, how can i add an object to be spawned in that area everytime, i understand you have to add it in the class file but could someone please help me with this? so i would like to have an object spawned there every time you enter the area

hope someone can help
thanks