Stashes in Custom maps
0

1 post in this topic

Recommended Posts

Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0