Jump to content
Sign in to follow this  
Snakeman

Stashes in Custom maps

Recommended Posts

Map: Military Complex

Hey Devs i have to report something about stashes in custom maps, the addContainer function seems not work.

require "StashDescriptions/StashUtil";
-- guns
local stashMap1 = StashUtil.newStash("McStashMap1", "Map", "Base.MilitaryComplexMap", "Stash_AnnotedMap");
stashMap1.buildingX = 5439;
stashMap1.buildingY = 9213;
stashMap1.spawnTable = "GunCache1";
stashMap1:addContainer("GunBox",nil,"Base.Duffelbag",nil,5440,9214,0);
stashMap1:addStamp("media/ui/LootableMaps/map_x.png",nil,241,588,0,0,0);
stashMap1:addStamp(nil,"Stash_McMap1_Text1",221,630,0,0,0);

Stamps works good

screenshot_15-03-2019_13-43-05.png

 

Another Test: I modify the construction coords and the container spawn coords to a vanilla construction and works. Now i know the code works only in vanilla construction and coords. It's a Bug!!! (Please Fix that to make awesome things with this system in custom maps)
screenshot_15-03-2019_15-32-22.thumb.png.2fac344ab1e840a50fec70bc880099a6.png

Edited by Snakeman

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...