randombox(weap)
{
if (!isDefined(weap))
return;

weap hide();
o = weap.origin;
cost = 500;

// init set of weapons in this randombox