This block will be run once when the scripted object (container or door, may be something else) is closing.
Syntax:
begin OnClose
Scripted object must contain "Close" animation (NiControllerSequence in Nif file) or it will not run.