How do I make an actor look at a character?
I created a tower, that's an actor class, and for testing purposes to see if it worked I have it look at me if I'm in it's radius and shoot towards me. But now I'm trying to make it so that when another character, such as a bot, is in it's radius the tower looks at the bot and shoots at it instead.
I've tried changing the GetActorLocation target to get a reference to my bot, get movement base actor, get owner and a couple more ways and I still can't get my tower to look at my bot. When they pass within it's radius the tower doesn't look at or shoot. Does anyone have a suggestion on how I can get this working?
I attached a screenshot of my look at player function in my tower blueprint.
I think a simple way around this is to have it check for the "bot" presence first using a branch then if "bot" returns false it goes to another branch and checks for player.
answered Feb 10 '16 at 07:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here