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"

Can I move a character that is not possesed by player?

I want to move two characters at once

I got that a character not possesed can not get input from a player, So I have my characters move by using a function 'add movement input' In level blueprint.

The result is, just possesed character moves.

I should use character movement cause Character supports not only collision algorithm, but also climbing stair algorithm

Is there any good ideas? Plz help me.

Product Version: UE 4.14
Tags:
more ▼

asked Feb 28 '17 at 07:38 AM in Blueprint Scripting

avatar image

ggggamer
13 4 4

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

2 answers: sort voted first

Here's the basic concept of what you need to do:

  • You need to get a reference to your characters. I kept mine in an array when doing this.

  • You can add or remove characters from your array to determine which will currently receive orders.

  • When sending orders, all characters in the array are told to execute a function.

I don't have access to the engine here to put together an example in blueprints, unfortunately. Could you maybe elaborate on what kind of game you're trying to make?

more ▼

answered Feb 28 '17 at 08:06 AM

avatar image

Drunkenvalley
371 14 21 46

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

Thank you for your answer.

I got the references of two characters by dragging and dropping them from world outliner.

at first, It doesn't works, But now It works.

maybe I took some mistakes.

here is my level blueprint alt text

1111.png (87.2 kB)
more ▼

answered Feb 28 '17 at 08:30 AM

avatar image

ggggamer
13 4 4

avatar image Drunkenvalley Feb 28 '17 at 08:32 AM

Glad to see you got it working! :) When I did this I just used "AI Move To" - you'll just have to fetch the character's controller for reference.

avatar image ggggamer Feb 28 '17 at 08:37 AM

Oh... nice information. Thank you!

(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