This should not be used in an actual game as it is super unstable, hardly works and is poorly optimised.
I thought that I may as well uncopylock this as I am completely rewriting it now that I am a lot better at scripting and placement systems in general and I fought that it could help some people out because I know first hand how hard it can be to make a functioning placement system. This does not resemble the placement system used in my current game, it is old and should never be used! Only use it to learn from!
You can find it here.
Please don’t judge the poor and untidy coding, I honestly had no idea where to start with a placement system back then and basically just slapped loads of code together hoping it would work. It is rushed!
That’s basically it, tell me if I missed anything? This is my first actual contribution to the dev forum, so I hope you like it?