Hi Gil,
How would I teleport a combatant when they step on a grid cell.
Grid cell Event :Move to
Type: schematic
This is where i have issue.
First: check grid cell type (i will have various teleport types, eg Teleport1A and Teleport1B - these will be linked)
But where to from here? I want to move combatant into air quickly, and then move to target grid cell.
Or if it's relative to the current cell, use a Select Grid Cells node.
The rest is just moving the game object as you want it to move - and don't forget to use a Set Grid Cell Combatant node to set the combatant on that new cell.
If this happens during movement and you want to stop the rest of the grid path, try using a Stop Battle Actions node to stop the actions of the combatant.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I'm using Grid Cell From Coordinate node,
Example, I want to move to cell 15,21
I've tried 15,21,0 & 21,15,0 & 2.25,-2.08,-0.75
Can you advise what I need to set values as?
The Grid Cell Position type you're using here is something completely different, using Makinom 2's game object grid system, which is not related to ORK's battle grids.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I''ve changed to value, and given the co-ordinates from the inspector.
Also added a node to display the value of the cell data, but it's given me 0,0,0 instead of selected data.
any idea where I'm going wrong?
They're displayed in the Battle Grid Cell Component inspector, i.e. the Row and Column for square grids. So, your coordinate would be X=row, Y=column, Z=0 - in case of that cell it's X=14, Y=22, Z=0.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
First, use a Select Grid Cells node to get either all cells or just the cells within teleport range.
Next, go through them one by one using a Select Selected Data node (select type First and enable Remove). Use a Check Grid Cell Type node to check if it's the teleport type, if not, connect back to the Select Selected Data node, if yes - you're done and can do your teleport stuff :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!