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"

Tracing doesn't work in simulate or play

So i have a nice blueprint that is supposed to start looking for its neighbours on construction scripts. And it works up to the point that i start simulating or playing the game. Then suddenly the trace finds nothing. What can be the reason for that?

Im not even sure where to look.

Product Version: Not Selected
more ▼

asked Jun 22 '14 at 04:46 PM in Blueprint Scripting

avatar image

60 10 13 19

avatar image Illusive_S Jun 23 '14 at 12:14 PM

Ok so apparently constructor script in editor is called after everything is created. But in game it occurs when each individual element is created so my script that was supposed to look for neighbours sometimes found them sometimes they werent there yet because of the order those were created.

So essentially editor constructor event = play begin play event

Is this supposed to be this way?

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

1 answer: sort voted first

The construction script only runs in the editor, not when you play or simulate the game. To get the same behavior in game, you'll need to use the event graph.

more ▼

answered Jun 22 '14 at 09:32 PM

avatar image

86 10 12 20

avatar image Illusive_S Jun 22 '14 at 10:39 PM

So why the result change? In editor everything looks fine. When i play(or stimulate) it suddenly shows diffrent results.

avatar image pfist Jun 22 '14 at 11:54 PM

Can you post a screenshot of your Blueprint? That will be a big help in troubleshooting the issue.

avatar image Illusive_S Jun 23 '14 at 09:33 AM

Here they are

graph1.png (156.4 kB)
graph2.png (118.0 kB)
(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