Top Down Character Movement - Hit Result Under Cursor by Channel - Problem

Morguhl
Mon, 30 May 2016 07:26:57 +0000
Character & Animation

Hello everyone!

I am currently trying to improve the movement system that is used in the Top Down Package for UE4. What i want to achieve is that blocking objects (like walls and monsters) are ignored by the mouse when i click it for the character to move. As it is now it feels very clunky. After consulting google search i found that the solution to this would be to setup a new custom trace channel (which i called movement) and set it to “Ignore”. Then i made a Floot Object Blueprint with custom collision settings where i set the “Movement” Trace Channel to “Block”.
The “Get Hit Result Under Cursor by Channel” function is set to use the “Movement” Trace Channel. To my understanding the cursor should now only be blocked by my floor class objects and not by wall and other stuff? For some reason it is not working as i think it should. Does anyone have any clues for me?

Thanks in advance!

3 posts - 1 participant