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"

Attach random asset from a collection?

I'm looking for a way to generate characters with random stuff (clothes, weapons) using a Blueprint. How do I have to organize the stuff assets in order to randomly choose them and attach to the character?

I was thinking of using an Object Library, but it seems to be the designed for other purposes... I think it has to be some sort of array, so that I can pick any asset with a random index.

There could be lots of stuff, so less manual work is required =)

Product Version: Not Selected
more ▼

asked Apr 13 '15 at 05:13 PM in Blueprint Scripting

avatar image

20 7 13 13

avatar image netgoblin Apr 20 '15 at 12:33 AM

help is still needed here! plz

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

2 answers: sort voted first

I would also like to know if this can be achieved, as at the moment i am hardcoding select nodes as a work around

more ▼

answered May 19 '15 at 09:14 AM

avatar image

58 6 10 18

avatar image Joachim Jul 06 '15 at 03:14 AM

I've got the exact same problem as well. Please help.

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

You can use ObjectLibrary created at runtime which is based on your desired class. eg UWeaponData from folder Data/Weapons and it will contain all matching assets of that specific class in that folder. Than you can just generate random index and either directly use that weapon data class or load it if it is not loaded yet.

more ▼

answered Mar 03 '19 at 01:01 AM

avatar image

Vertex Soup
288 4 22 16

(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