x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[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!

alt text

Product Version: Not Selected
Tags:
capture.jpg (126.1 kB)
more ▼

asked Mar 22 '15 at 07:35 PM in Blueprint Scripting

avatar image

walldiv
117 9 13 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

https://answers.unrealengine.com/questions/102661/undefined.html

more ▼

answered Mar 23 '15 at 06:10 AM

avatar image

walldiv
117 9 13 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question