Picking target in a turn based RPG

So in the game I’m currently making the player needs to be able to select a target after sending a command.

This is the order my code works: Combat starts → Game determines who goes next based on the speed stat of each character (nevermind enemy turns for this example) → Player gets the ability to click on the buttons of the HUD to Attack etc… (only when it’s the turn of one of the character he controls) → Player chooses an action, let’s go with Attack for this example → Game asks for a target → Damage is calculated and game goes back to the speed stat part.

I have no idea how to get the target part done, I’d like it to be so that the player could click the 3D model (staticmeshactor) of the enemy he wants to attack but I don’t know how to go about it.

I am really interested in this topic as well. Hopefully someone can answer this… :slight_smile:

What you are looking for is the GetHitResultUnderCursorForObjects blueprint node.


This goes in your Player Controller.