All my room hotspots have one of two interaction types: "player go to a different room" or or "run script."
Whenever someone clicks the mouse I run a "tidy up" function, resetting some variables to zero. But I don't want to do that if "run script" is being called (in case those variables are needed). How can I tell which interaction is being called?
Or do I need to go into every hotspot and edit it manually, calling my "tidy up" code separately each time?
Whenever someone clicks the mouse I run a "tidy up" function, resetting some variables to zero. But I don't want to do that if "run script" is being called (in case those variables are needed). How can I tell which interaction is being called?
Or do I need to go into every hotspot and edit it manually, calling my "tidy up" code separately each time?