This adds a new argument exbuildings to the findpath RPC method. The argument expects an array of building IDs (can be empty). Buildings referenced by it will then not be treated as obstacles (while all other buildings set with setpathbuildings are still obstacles). With this it is possible to compute paths "to" a building, e.g. for entering it.
To make this work, the data passed into setpathbuildings now also needs to include id values. But if the output of a GSP's getbuildings method is passed, that will be fine already.
This adds a new argument
exbuildings
to thefindpath
RPC method. The argument expects an array of building IDs (can be empty). Buildings referenced by it will then not be treated as obstacles (while all other buildings set withsetpathbuildings
are still obstacles). With this it is possible to compute paths "to" a building, e.g. for entering it.To make this work, the data passed into
setpathbuildings
now also needs to includeid
values. But if the output of a GSP'sgetbuildings
method is passed, that will be fine already.