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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

In game variable.

Is there any method to create variable in game? For example, player starts game and event begin play creates new virable with pre-conceived or random variable name.

Product Version: UE 4.14
more ▼

asked Nov 30 '16 at 09:27 AM in Blueprint Scripting

avatar image

9 5 4 8

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

2 answers: sort voted first

You can, sort of. If you make two arrays, one with the names and one with the value or you make one array with a special tuple class holding both the name and the value you can simply add to that array. This is as close as you can get though.


more ▼

answered Nov 30 '16 at 11:10 AM

avatar image

2.7k 106 35 179

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

Hi :)

I don't think you can create member variable during runtime (it's the same as C++, you can't modify class during runtime :D). But maybe you are looking for nodes like Make TEMPORARY_VARIABLE_TYPE for example you can create a float in the blueprint using Make Literal Float and do whatever you want with. However, like any scoped variable in C++, it will be destroyed at the end of your current exec line.

Good luck, best regards.

more ▼

answered Nov 30 '16 at 09:53 AM

avatar image

692 31 20 54

(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