I have put comments in the code to help you use it yourself. Fell free to change or add anything to this, as it's pretty much just the skeleton of a dynamic ai.
to help someone make a fnaf game