[SOLVED] Spawned Actors - Changing variables on spawn
Hello all and thanks in advance for the help.
I have an inventory system that implements drag & drop functionality. Upon dropping succesfully I pass all variables to the dropped/spawned actor... so it will spawn the class type that it was, and the STACK AMOUNT (most important here!!) that it had stacked up in the inventory.
UPON SPAWNING: After spawning this item... ANY item that is in the world that has the same class as this, now inherits these attributes. Below is the screenshot of my event graph & construction script.
I AM SO CLOSE to finishing this its like a blood thirst lol...... what i need to do is this:
Drop/Spawn item - change ONLY this spawned item's attributes on spawn. This has to be dynamic, because i could drop ANY given item out of my inventory, but any actors in the scene already living that have the same class needs to stay as they are.... again thank you in advance!
This was solved by the following method below.... basically dynamically casting through a list of casts for stackable items... which is a shorter list than the unstacked items in the game. through parenting classes, much can be attained with this feature/functionality.
answered Mar 23 '15 at 06:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here