Hi! Sorry wasting your precious time with this stupid person but...
My Obsessive Compulsive Disorder keeps screaming when they have something out of order or when there's trash scattered around, in this case, switches...
In short, is there a way to find unused switches?
Owww, that's is fast! Thanks buddy!
lol - yes, I like to write scripts that do nothing but increase the loading time. 😀
As the name suggests, it is a cross reference tool. It is a developer tool that you use while making the game, but remove before distribution. With it active, you can go into the menu, select the XRef command, and get a massive list of everything you have in the database, and every other database item, map and event that uses it. So it will show you which switches or variables are unused, but it'll also show you all of the events that use a particular switch or variable, or anything else in the database.
Try it - if it doesn't work or you don't like it, remove it 🙂
yes, I think so. Been a while since I used it.
It would be interesting to see if it gives the same results as the other script.
Note - this only looks at your default project files (anything in the data folder). It cannot tell if you use anything in scripts or script calls. So be wary about deleting or reusing things. It is more useful if you want to find where something IS used - say you have an accessory and you want to change it to be a weapon - this will tell you all the places where you've used that accessory, so you can go and change all instances to use it as a weapon instead.