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"

Unit Spawn after, move and attack

I apologize for using the translator because I am not good at English. I want to make a game of RTS like Clash Royale, but it is hard to move after sponsoring the unit.

I'm still a beginner. alt text

If the map shows this, Target is a castle and if you select a line and unit out of the number and pull out the unit, the automatic movement to the Y axis and the final target are the castle in the map and want to attack if the enemy unit is met. Briefly and try the tree bieibieo ai move to also set without moving in lines, but ignoring the movement to. How can it be handled efficiently?

The level spawn the unit this way. Please advise.

Product Version: UE 4.20
Tags:
3.png (10.9 kB)
more ▼

asked Nov 16 '18 at 02:52 PM in Blueprint Scripting

avatar image

BellKite2
1 1 2

avatar image BellKite2 Nov 16 '18 at 02:54 PM

alt text alt text

1.png (361.0 kB)
2.png (260.2 kB)
avatar image mightyenigma Nov 17 '18 at 05:13 PM

It looks like you are spawning the unit as an AI pawn. That can work, but what does the AI controller code look like, which tells it how to move?

avatar image BellKite2 Nov 17 '18 at 07:05 PM

I want to call in the unit at the level and manage it with an AI controller. Also, how do I move along the Y-axis line? Along the 1, 2, 3, 4. line

avatar image mightyenigma Nov 18 '18 at 03:35 AM

I'm afraid I dont know, but to make AI move at all I think you have to issue a Move to command such as a MoveToLocationOrActor

avatar image ThompsonN13 Nov 18 '18 at 04:26 AM

it looks like your trying to do something similar to the moba livestream series so maybe that will be of some help.

https://www.youtube.com/watch?v=XB_sRVqiLV4

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

0 answers: sort voted first
Be the first one to answer this question
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