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"

Enum Item System (Gear System like in Assassins Creed Origins)

Hi, me and some friend are trying to make a medieval Game, now we want a Gear Menu, like the one in AC Origins, for everyone who doesn't know how it works, if you obtain a new weapon, this weapon will get into the melee weapons area of the Gear equip menu (only melee weappons are stored there) (the same exists for bows and so on). As soon as you klick on one of the Gear windows, you have the possibility to scroll down and if you click on one Gear Item it will get equipped. The weapon/shield/bow... you see as a "showcase" in the section of this certain type of equip is the one you have equipped. It would be usefull if i could sort the strongest ones to the weakest (best are on top of the list, worst on the Bottom) How could i make my wish come true? I know how to setup enums and how to give a weapon one of the enum Types but for the rest i need help Thx a lot   Two links, if you dontunderstand what i tried to explain:



Thanks for helping me ^^

Ps: i am using Blueprints

Product Version: UE 4.18
more ▼

asked Feb 01 '18 at 10:21 PM in Blueprint Scripting

avatar image

1 1 2 2

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

1 answer: sort voted first

In your content browser, right click to pull up the "Create" menu. In the bottom section (Create Advanced Asset), look for Blueprints, then inside that, Enumeration. This creates a user defined enum.

Once you've named it, you can double click to edit. To add options, click "New" in the top right.

Then, you can define each option, and add a description. You can add this to a blueprint just like any other enum.

Using an enum like this, you could define an item type such as "Sword". You could then use that to create a blueprint for each weapon. Or, if you feel like being fancier, design weapons in a User-Defined Structure (which are created similarly to enums, in Blueprints > Structure). I would give it data like a mesh, a strength, a durability if needed, and a weapon type.

Then, your player's inventory is just an array of these "Generic Weapon" Structures.

That's how I would do it anyway.

more ▼

answered Feb 01 '18 at 10:41 PM

avatar image

1 2

avatar image LordEggi2 Feb 02 '18 at 09:53 PM

I created types of Weapons, but how can i asign a type of weapon to a scrollbox(this box will now only collect one type0 of item), so that every Slot collects another type of item? I have a simple system, it collects the items and then creates a widget and places all items in one scrollbox but i want to change this so i can give the graph the ability to only collect one type of an item (e.g. a bow). And the i could copy it and only change the structure name or the enum name Thanks for your help ^^

(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