How do you get a spawned actor to move towards another actor?

I have a missile that I want to spawn every 3 seconds that flies toward another actor. But there's no option that lets me input the actor's x,y location.(I'm using accelerate toward behavior) I understand that putting the missile actor into the scene will open up the option to the other actor x.y, but It only works for that specific actor and not the other spawned actors. Anyone got the answers?

Best Answer

  • LyboTechLyboTech Posts: 135
    Accepted Answer
    I'm not sure I understand your question but if I got it right you want to let the missile fly towards another actor ? - If so, you should make two attributes: Actor_X and Actor_Y, and the actor should constrain those attributes to their self.position.x / y.

    Then you simply change the accelerate toward -> Actor_X and Actor_Y.
    Hope this helped ;)
Sign In or Register to comment.