Its just general math. If you know nothing about graphs or vectors, forget the botzom and make easier scripts, for example opening doors, moving plates etc.