[SUPPORT] Advanced Turn Based Tile Toolkit

Hi ,
is there a setting to allow a unit to pass a allied faction while moving? By default, it seems friendlies block movement. Thanks!

Ok, Iā€™m still not 100% sure if I understand the question, but are you asking how to check the range of the targeted unit to make sure it is in range so that it can counter attack? If that is what you are after, I think this change will do the trick:

Hi, set the PathfindingType variable of your units to BP_Path_PassThroughFriendly

the ā€œtarget index inā€ is from special location or is to make a new variable?

i put before return attack if i understand corect.

Sorry for the confusion. My example was in the ExecuteAbility function. It has a TargetInputIn parameter. In the AttackUnit function you can instead use the TargetUnit parameter. You just need to change a cople of small things:

Hi ,
Iā€™ve just noticed that the health bars/unit huds are not showing up over units. I havenā€™t done anything with the HUD. Iā€™ve checked in the debugger and ā€œevent set health bar fillā€ is being called, but health bars are not appearing. Any ideas as to why this might be?

Hi phuoclam, since I do not know how you have modified your project this could be caused by any number of things. Does the game otherwise function as expected? Death animations playing when sufficient damage has been done to the units, for instance? Do you recall what part of the code you were working on when you first encountered the bug? Might give us an indication of where you broke something.

Another question for you, Iā€™m spawning some enemies during runtime but, on the spawned enemyā€™s turn to move, the puppet is stationary, a ā€œgrid location capsuleā€ appears at the destination, and a bunch of runtime errors occur: ā€œAccessed None trying to read property MovedActorā€¦ Blueprint: BP_Action_Moveā€ What do I need to do to fix this? FYI, the spawned enemy is a child of BP_Unit_Anim. Thanks!

Game otherwise does function as expected (death animations, etc), the health bar is just not visible. Itā€™s strange as I havenā€™t modified the actors or HUD in any way. I have custom children of BP_Unit_Anim but that shouldnā€™t affect the health bar. Even stranger, Iā€™ve tried adding BP_Unit to the level (and BP_Unit_Anim_Debug) and no health bars. Unfortunately, I donā€™t know where in the code I was working when the bug first occurred :frowning:

Thank you

how to ad fly to creatures ? i have the castle wall and want to make some unit posibility to fly.

This is an issue Iā€™ve seen before, but which I believe should have been fixed. You are using the very latest version, or did you start the project a while ago? In the MpSpawn map does spawning work correctly? How are you spawning your units?

Extremely hard to know the cause, then. But a few things you can do to look for the issue. In the UnitHud widget and WBP_UnitHud, try printing some values to see if they are being triggered at all during gameplay. Way to check that the underlying code is running correctly, at least.

Check out my ā€œTerrain Costsā€ tutorial. There I explain how to have different units be able to move over different tiles. That should work for flying units in your game, I believe:

I didnā€™t realize there was a spawn mapā€¦ I need to clarify. I want to create additional enemies during a match (not just at the beginning/before a match starts) and call ā€œSpawnActorā€ to create the units. I obviously need to do something more to attach a working puppet to the newly created units?
(fyi, I am using latest version, MpSpawn map does work).

Good day. how to add, create or edit special abilyti lice grenade, hill, resurect, or cheange any parametr of unyt range attack etc?

figured it out, I just needed to call Unit->spawn puppet lol. Youā€™d just expect the puppet to spawn when you spawn a unitā€¦ Looking at BP_AbilityBase_SpawnUnits you do not call spawn puppet either so thatā€™s weirdā€¦

Hi, those are many different things. Most of those can be made through abilities, but in very different ways. Can you choose one to start with and describe a bit more how you want it to work?

Ok, glad you got it working, but the unit should indeed be spawning the puppet on its own. Wonder why that isnā€™t happening here. Where are you spawning the units? Is it during BeginPlay or at a later point? Could you show be the spawn node with how you have set up the inputs? Any chance you might be spawning it on the client?


units are being spawned during gameplay, not BeginPlay (ie. when a waypoint is reached, and when the previous ā€œwaveā€ of enemies is defeated). The ā€œspawn new monster waveā€ (attached) is in BP_ATBTT. I believe it is server side, but not 100% sure as I intend the game to be single player only and havenā€™t diligently made sure. Anyway, the issue is resolved by spawning the puppet and it may be best to leave it there as time may be better spent on other things now :wink:

Another question for you, Iā€™m trying to create a ā€œstun trapā€ which ends a unitā€™s movement (and turn) when the unit enters the tile with the trap. Because of how BP_Ability_Move, pathfinding, and the action queue work, the unit continues to move to itā€™s destination after entering the trap tile. I figure the easiest thing would be to remove the ā€œmove actionā€ from the action queue. But doing this (or otherwise manipulating the action queue directly) freezes the game. Iā€™ve tried calling all the ā€œaction managerā€ functions I can think of: Action Destruction Loop, Attempt Destroy Action (in a loop), Play Next Action, End Action, etc. but they are not doing what I want. Any ideas? How do I stop a Unitā€™s movement? Thanks!

How to add heal to unit or just use

Hey ,

Iā€™ve been playing around lately with the Hex grid and I was wondering if itā€™s possible to integrate the Cover&Stealth systems with it. Units seem to ignore completely the walls and tiles and the abilities from enemies. I have added the BP_CoverSystem & BP_StealthSystem to the grid manager and the BP_UnitStealthComponent to the units.

If at least I could use the cover system with the hex grid, thatā€™d be superb!

Thanks for the support!

Havenā€™t extensively tested it, but I believe adding the following to the floor trap in the Demo level should do the trick:

There is already a heal ability included in the JungleRaid and Demo maps. Does this not work the way you want it to?

Hi Arkanos, the Stealth system should work just as well for hexagonal grids, so not sure what might be wrong there. When you say completely ignoring walls and tiles what do you mean?

For having the cover system work on a hexagonal grid, one of the devs on the ATBTT Discord channel recently got it working. I recommend hitting up kiltedfrog on the Discord (link to Discord on the ATBTT store page) to see what changes they made.

Sory not heal, resurectin from part of death stack or fuly death stack.