Hello,
anyone know how to make a pathfinding list
so for example
1st target = enemy1
then if enemy 1 is dead/destroy
go to next list
etc...
i try to use onfailed pathfinding, but loop too many recursive = hang
thanks
Develop games in your browser. Powerful, performant & highly capable.
It will arrive at the location it had found, wether or not the enemy is still there ...
So you need an "on arrived"
do something
Then, do a new pathfind assigment followed up by move along path.
List Or PathfindingArray ? --> Insert object: array enemys ->
Add Values
if we want to make on path find failed validation
we need to use variable ?
for example
if not found the path to the enemy 1 then ... find base
if not found the path to the base then ...
how to make that in c2 ?
on path failed : ..
or 2x path failed?