Item Spawns in Chests - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Item Spawns in Chests (/Thread-Item-Spawns-in-Chests) |
Item Spawns in Chests - Jozack - 04-29-2017 02:49 AM I'm trying to get an item spawn in a chest. Can't seem to get it to work, at all. I'm setting a worldgem bit, with what I want to spawn at what intervals, placing the gem in the chest, initializing it.....but nothing. What am I doing wrong? Or is there another way to accomplish this? RE: Item Spawns in Chests - darksun84 - 04-29-2017 03:43 AM If i remember well, when an item is inside a container, its timer value doesn't decrease, so in your case it will never spawn. You have to spawn instead the container that holds the items. Example: Code: [DEFNAME random_template_test] Then place the worldgem bit manually or by Axis2. Remember two things when place an item spawn: The item will disappear when its timer value reach 0 If the item is moved or activated, the spawn will generate another item. RE: Item Spawns in Chests - Jozack - 04-29-2017 04:30 AM Aaaah I'm such a dunce sometimes! Thank you kind sir!! Where do I place that code?? |