Hi again
I have managed to get stuck, partly since Im trying to change your system completely, and partly because I dont even know the basics of the Unreal engine
However, I hope this problem is simple enough that you can still help me in the right direction.
I have removed the initiative sorted list and some other stuff that I dont think I will need.
I start the game with no unit selected since I dont really see a need for that in the gamemode that I plan to use.
My current problem is that Im not quite sure how or where to catch mouse clicks on a unit or the map so that I can use that to activate the unit.
My initial thought was that this should be in the BP_GridManager since its the thing getting clicked, or some other central place where you would look for input each tick.
But I seem to find most of the clicking stuff in BP_AbilityBase and Im not quite sure how parts of that blueprint are fired up unless a unit is already selected?
Edit
I think I solved the issue, found the input stuff in BP_PlayerController_ATBTT where I should have looked first tbh.
Now I just need to figure out how to activate units from there instead. I wont focus much on the multiplayer code, but I will probably have to review how to get that part to work later.
Is there any reason for me to state that something should be executed on owning client?
I have managed to get stuck, partly since Im trying to change your system completely, and partly because I dont even know the basics of the Unreal engine

However, I hope this problem is simple enough that you can still help me in the right direction.
I have removed the initiative sorted list and some other stuff that I dont think I will need.
I start the game with no unit selected since I dont really see a need for that in the gamemode that I plan to use.
My current problem is that Im not quite sure how or where to catch mouse clicks on a unit or the map so that I can use that to activate the unit.
My initial thought was that this should be in the BP_GridManager since its the thing getting clicked, or some other central place where you would look for input each tick.
But I seem to find most of the clicking stuff in BP_AbilityBase and Im not quite sure how parts of that blueprint are fired up unless a unit is already selected?
Edit
I think I solved the issue, found the input stuff in BP_PlayerController_ATBTT where I should have looked first tbh.
Now I just need to figure out how to activate units from there instead. I wont focus much on the multiplayer code, but I will probably have to review how to get that part to work later.
Is there any reason for me to state that something should be executed on owning client?
Comment