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"

Mirror Enemy, copy move from the character

Hi everyone,

I want to make an enemy which is copying the movement from the main character, like a mirror version of himself.

So basically, if I'm moving right, the character to move right as well, and so on, on a FPS project.

Thank you very much

Product Version: UE 4.18
Tags:
more ▼

asked Mar 19 '18 at 04:50 PM in Using UE4

avatar image

VladDumitriu
1 1 1

avatar image VladDumitriu Mar 20 '18 at 08:39 AM

please :D?

avatar image VladDumitriu Mar 21 '18 at 12:25 PM

please guys, i really need it

avatar image VladDumitriu Mar 22 '18 at 09:42 AM

pleasee?ee

avatar image VladDumitriu Apr 03 '18 at 05:15 PM

cmon, pleasee?

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

So, let's see.

You have the player and you have an enemy.

1 - give the enemy the same animation BP as the player

2 - copy all the logic in the player's input events to the enemy (moveup, moveright, fire, ...)

3 - replace all the the input events in the enemy by custom events:

alt text

4 - in the player BP, get the reference to the enemy in question:

alt text

5 - also in the player BP, add the necessary logic to sent the same input commands to the enemy:

alt text

6 - the end. Result:

alt text

enemy.png (138.4 kB)
settingmirror.png (64.7 kB)
player.png (189.1 kB)
result.png (480.7 kB)
more ▼

answered Apr 03 '18 at 05:44 PM

avatar image

EvilCleric
481 3 5 12

(comments are locked)
10|2000 characters needed characters left

Hello sir, thank's a lot, one thing that I cannot understand is the 4th step.

So, the "BP mirror" is the char mirror, but where is that "send" going after that in the events?

more ▼

answered Apr 03 '18 at 06:23 PM

avatar image

VladDumitriu
1 1 1

avatar image EvilCleric Apr 03 '18 at 06:54 PM

In the step 4, you will get the reference of the mirrored character, which I name BP_Mirror, so you can then access all the custom functions, which in this case are: MoveUP, MoveRight, FireOn and FireOff.

I don't understand what you mean by "but where is that "send" going after that in the events?"

(comments are locked)
10|2000 characters needed characters left

My question is , that , set mirror character where is going after that, in the events?

To the move right/move left?

more ▼

answered Apr 03 '18 at 06:56 PM

avatar image

VladDumitriu
1 1 1

avatar image EvilCleric Apr 03 '18 at 07:06 PM

It doesn't matter for the discussion at hand. It could end right there.

(comments are locked)
10|2000 characters needed characters left
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