Is it possible to procedurally alter path cost, so that pathing choice can be affected based on dynamic agent/world state?
@mieszko say that it is possible in C++, he mention something like Path Query Filter (I think that was the name of the class that he mention, my english is not very good ) but i can’t find that class, the more similar class that I find is NavigationQueryFilter.h. URecastFilter_UseDefaultArea extend from that class and URecastFilter_UseDefaultArea is one of the filter class that you can use for example in the Move to BT Task.
FNavigationQueryFilter implement INavigationQueryFilterInterface that has some virtual function like SetAreaCost etc, they seem to be what I’m looking for but i am not completely sure about that or how exactly use it.
Please, someone can point me in the right direction, at least the class/function that I need to override in order to procedurally alter path cost. If you can give me at least, and general sample will be great !!
Yes Bruno, I have seen it and I have been doing some test, but nothing
I think that I need to implement a custom NavigationQueryFilter and use that Filter in my Move To task, but I don’t understand how it work and how implement it, which function I need to override ? exactly what I need to put in the overridden version etc
All the comments that I see are something like. “You need to extend from X class” or “You need to use QueryFilters”. But is super confused for me, an more clear example will be very appreciated :).
Sorry for the really late reply. I have been busy with another things all this months, but now I am on this again. I have been checking your link, but I think that solution is not enough for my case. I have been discussing this on the forum. To avoid duplicate this discussion, do you can check the following link please ?