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"

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. 

Stun ability not working against enemies

I am currently coding a stun ability that allows the player to press T and stun all enemies within a certain radius. I believe the issue is with the behavior tree/blackboard. I used print string nodes to indicate if the enemy(s) are within the stun radius when the player presses T. That seems to work fine. The problem is actually stopping them in their tracks when they get stunned. Currently, I am getting the AI controllers of the enemies within the stun sphere and using a "set value as bool." In the behavior tree, I use a wait task that executes if the "isStunned" key is set. I have a feeling that the the main issue is setting the "isStunned" key. alt text

Product Version: UE 4.15
Tags:
stun-function.png (437.7 kB)
behaviortreepic.png (506.1 kB)
more ▼

asked Aug 17 '17 at 05:47 PM in Blueprint Scripting

avatar image

BrownWolf
18 3 3 10

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

1 answer: sort voted first

Turns out I had to set the value of the "isStunned" variable (found in the stun function) and set the default value of it to "isStunned"

more ▼

answered Aug 25 '17 at 10:03 PM

avatar image

BrownWolf
18 3 3 10

(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