Dale_ on 25/2/2016 at 16:09
Hey there :)
I have a very specific and strange issue I can't figure out.
I have 3 copies of the same item spread around the map, each in its own container. Each of these items has a custom stim on them set to contact->collision, intensity 10. Then there is an object which has a receptron to this custom stim, no min, no max, Destroy Object, Me.
Now, when I pick up any single one of these items individually from their container and place them on the object, it gets destroyed and all works fine.
BUT, when I pick them up one by one, let them stack in my inventory and then drop one on the object - nothing happens. I have to drop ALL of them on the object before it destroys itself.
I tried the same setup with different receptrons and got the same results.
This brings me to a conclusion that when items of the same type (or items sharing Combine Type) stack, their stims somehow combine and then the stim isn't sent until all of the once-combined items have been used? And... if that's really the case, is there a neat way to avoid that?
Thanks!
R Soul on 25/2/2016 at 16:29
When you pick up an object, it goes in your inventory as expected, but if you pick up another one, that gets deleted and the stack count of the first one is increased.
When you drop a stacked object (or shoot an arrow) the game creates a new one from the object hierarchy, so it won't remember any concrete property changes you made. When you get down to the last object, that is the actual object you picked up, so it still has its concrete properties (except for Physics which gets reset).
So add the stim to the object in the hierarchy instead.
Dale_ on 25/2/2016 at 16:33
Ohh.. that solves it, thanks! :)