Chest Script use:
chest.lua - use as 'aimain' in supplycrate properties
or any other animated chest
chestammo.lua - use as 'aimain' in ammo properties
chesthealth.lua - use as 'aimain' in health properties
chestweapon.lua - use as 'aimain' in weapons properties
Works as regular USE or KEY
After changing the properties of the entity - place in crate about half
way up from ground level. After the crate is opened you must Crouch
using "C" key to get the treasure. It will only work when the chest
is at ground level. if it's on a table you will be able to get the
treasure without opening the chest or without a key.
I'm still working on that problem.