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"

Variable priority?

I have a boolean variable called 'a' and change it after the event tick in one blueprint ,and also change it after the event tick in another blueprint.How can i know which one is executed first?And how can i set the priority so that it can make a good result?Thanks!

Product Version: Not Selected
more ▼

asked Jul 04 '14 at 04:15 PM in Blueprint Scripting

avatar image

401 63 80 107

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

1 answer: sort voted first

You can do that by switching tick group, but you can do that only in C++


...but don't worry it's easy :) Setup C++ envrament if you don't have, create class with "Add Code to Project", use parent class which you used in blueprint. Now in .h add BeginPlay declaration like this in class declaration which "add Code" should make fo you, you just add that single line:

 class ASomeClass : public ASomeParentClass
     virtual void BeginPlay() OVERRIDE;

And in cpp file you add this:

 void ASomeClass::BeginPlay() {


Replace ASomeClass with you class name and TG_PostUpdateWork you can replace with any tick group (in link you got description on which rendering stage tick is called, pick later one or earlier one):


Build your code (you can restart editor and it will compile changed code if you set up VS2013 right) Now make a blueprint (or change parent of existing one) with this class from C++ as parent class and thats it, that blueprint will have diffrent tick group and it will tick diffrently then other blueprints so you are sure one is after another :)

If you puke on sight of C++ or you go problem setting up VS2013, try to describe what you exactly want to do with those bools, maybe we can find some blueprint solution.

more ▼

answered Jul 04 '14 at 11:52 PM

avatar image

37.8k 937 172 1123

avatar image hls333555 Jul 05 '14 at 12:55 AM

Thanks very much!I will try that!

avatar image Shadowriver Jul 05 '14 at 01:08 AM

Ah i forgot! Add Super::BeginPlay(); (which calls function in parent class) to BeginPlay function, or else BeginPlay won't be triggered in blueprint, because in AActor class this function calls ReciveBeginPlay() which is responcle for BeginPlay in blueprint. I updated my anwser :)

(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