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"

Pros and Cons of using Structure BP?

Hello, I'm making a plane game and i have few variables. Some of them i use frequently and others like Health only on taking damage. The question is what should i save in Structure BP and what not?

I have also some "more static" variables that change(or will change) only if you change a item or get hit etc.

There are also variables that change on each tick like the speed, turn rate etc. more dynamic things.

Product Version: UE 4.20
more ▼

asked Sep 04 '18 at 09:41 PM in Blueprint Scripting

avatar image

36 3 4 13

avatar image ThompsonN13 Sep 05 '18 at 01:38 PM

in your case i probably wouldnt bother with a struct it would just make things more complex needlessly. there are many times when structs are useful though. like lets say you are making a item system, instead of making a different actor for each item you could use a datatable which works off structs to store the stats for the items then all you would need is a single actor that becomes all the items. another instance where structs are useful is if you were going to save a characters stats between levels, in this case you would need to save the stats to the game instance but doing them one by one would be a pain so you make them into a struct that can move them all at once.

avatar image G1K777 Sep 05 '18 at 04:41 PM

Items will be the next step after i'm done with the movement.

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

0 answers: sort voted first
Be the first one to answer this question
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