Are AddItemToStock and RemoveItemFromStock bugged?

Arkan

Nobody rides for free
Reaction score
92
Seriously, they refuse to work in a project I'm working on, strange thing is that they work in another map I have.

I have a shop with 2 instances on the map. the shop has Select Hero, Shop Purchase Item and Shop Sharing abilities.

If I add the items in the object editor they appear in game, but they cannot be removed with RemoveItemFromStock.

Now if I try to add an item to them nothing happens.

Anyone experienced this and found a solution?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Try adding "Sell Items" to your shop's abilities.

Only items that have been added by triggers can also be removed by triggers.
And, generally, this kind of stuff works better with a shop that is not owned by Neutral Passive.
Try Neutral Extra or so, with a couple "set alliance" actions.
 

Arkan

Nobody rides for free
Reaction score
92
Made no difference :/

Ok saw you edited your post, the shop is owned by neutral passive, I'll fiddle around abit and see if I can get it to work.
 

Arkan

Nobody rides for free
Reaction score
92
Alright I got it to work now, weird function.
Thanks AceHart.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top