View Single Post
06/10/23, 05:16 PM   #4
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
So if you don't want to run code while in a load screen, you'll want to use the player activated and deactivated events. Have a flag and toggle it on each of those events, and if the flag is false don't swap. If you want to check if you have a craft station active, the function is something like GetCurrentCraftInteraction (probably not 100% correct name)
  Reply With Quote