x

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"

BT Service Activation node fires multiple times.

From what I understand, Activation event in BT service should fire once when it's activated. However, in my case, it works like Tick. It gets triggered continuously. (I confirmed no task gets aborted during the session)

Is this a known issue? Or am I wrong about the Activation node?

Product Version: UE 4.13
Tags:
more ▼

asked May 22 '17 at 05:28 AM in Using UE4

avatar image

netcop0207
81 8 13 20

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

2 answers: sort voted first

BT logic called every tick. Your service also would be activated every tick.

more ▼

answered May 22 '17 at 06:27 AM

avatar image

Erumaru
630 12 14 52

avatar image netcop0207 May 22 '17 at 07:02 AM

alt text

I beg to differ. My project must have something messed up.

btstest.png (959.7 kB)
avatar image Erumaru May 22 '17 at 07:07 AM

What setting do you have here? alt text

123.png (26.5 kB)
avatar image netcop0207 May 22 '17 at 07:14 AM

alt text

Nothing fancy. Just the custom service.

btstest2.png (241.2 kB)
avatar image Erumaru May 22 '17 at 07:22 AM

And your activation node fires every 5 seconds?

avatar image netcop0207 May 22 '17 at 07:39 AM

No, it doesn't. I made a custom BT Task instead of wait, and below is how it works.

alt text

Activation is called only once, whereas Tick is called every .4s ~ .6s. Execute fires every time it finishes execution.

btstest3.png (923.6 kB)
avatar image netcop0207 May 22 '17 at 07:49 AM

Ok, I found something interesting. If I add a selector between the root and the selector that holds the service, the activation is called every time the execute is called. Please see the image below.

alt text

I still don't know if this is a bug or EPIC's original intention. :/

I should unmark my answer. I hope epic staff have explanation for this.

btstest4.png (1.0 MB)
avatar image Erumaru May 22 '17 at 08:39 AM

Do you have finish execution node in your task?

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

alt text

I did a test in a clean project(4.13), and the Activation works just as I expected. Seems like something's messed up in my project. As I have no idea what might be causing the problem thus can't provide further information, I feel obliged to mark this question as resolved and try to figure it out on my own.

Thanks for sharing your thought.

btstest.png (959.7 kB)
more ▼

answered May 22 '17 at 07:11 AM

avatar image

netcop0207
81 8 13 20

(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