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"

How would I fix enemies to surface?

Image 1: I would like the enemy AI to cast to the player while staying on the surface.

Image 2: This is how the player stays on the surface while moving. (https://youtu.be/uGnHmGuTFXg)

Does anyone know what I need to add the the AI blueprint to get it to behave like the players restraint?

Product Version: UE 4.13
Tags:
shot01.png (604.5 kB)
shot02.png (251.4 kB)
more ▼

asked Jan 08 '17 at 03:29 PM in Blueprint Scripting

avatar image

FinalDingo
1 1 2

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

1 answer: sort voted first
  • Add a trigger volume for each "surface" area and place them so that a player stepping on/off of that surface will trigger them.

  • Set a variable in the Character blueprint ..eg "SurfaceType" [int]

  • On Overlap of these volumes, set the appropriate value.

  • Then when you have the enemy AI cast to the character, Get SurfaceType from the result and see if the player is standing on that surface.

more ▼

answered Jan 08 '17 at 04:28 PM

avatar image

Looniper
766 22 7 36

(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