Is there any way to create a script where there is a ammobox that can be spawned in a trigger with random loot? I've been searching the fourms but all I've been able to find is how to put a ammobox in a random position. But I need to have random loot in the ammobox.

By the way I need the ammobox to be in houses and shelters. All I have been able to do is have a marker named pusta and a script in a trigger with