More parameters to destroy()
Also, removed some warnings in script.cpp