How to spawn a chest?
#3
Try this:
World:SetBlock(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ(), E_BLOCK_CHEST)

And afterwards if you need to access the chest you can use this:
World: DoWithChestAt(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ(),
   function(chest)
      -- Do something with the cChestEntity like filling it up
   end
)
Reply
Thanks given by: newobj


Messages In This Thread
How to spawn a chest? - by newobj - 07-26-2016, 03:31 PM
RE: How to spawn a chest? - by newobj - 07-26-2016, 03:42 PM
RE: How to spawn a chest? - by NiLSPACE - 07-26-2016, 03:43 PM
RE: How to spawn a chest? - by Seadragon91 - 07-26-2016, 05:02 PM
RE: How to spawn a chest? - by NiLSPACE - 07-26-2016, 05:17 PM
RE: How to spawn a chest? - by Seadragon91 - 07-26-2016, 05:22 PM



Users browsing this thread: 2 Guest(s)