Cities: Skylines

Cities: Skylines

Traffic++
kelmenwong 2. juli 2015 kl. 9:58
coding: any guide to check whether building a can reach building b?
hi, i'm trying my hand on modding
however the public documentation provided no details about the api

i'm wondering do u have a piece of code i can reuse/explore, to determine whether building a can buillding b by road within a distance?

i have sampled your codes, fooling with FindPathPosition and CreatePath
I thought the bool result from CreatePath telling whether the 2 points are connectable/reachable, but it doesn't work as i expected
it always yield true, even in game by visual, vehicle is not reachable the destination
< >
Viser 1-3 af 3 kommentarer
try the Github projects of the mods? that's where most mods are .

p.s im not a mod developer , just someone that have used a lot of mods from Minecraft to Skylines
kelmenwong 3. juli 2015 kl. 8:54 
that is where i sample his codings
what i asking is not where to get source code, but about exact coding/sample for the topic
leftbehind 4. juli 2015 kl. 9:16 
The pathfinder is what you'll be needing. I don't have exact code to hand but looking at any service AI mods (like [ARIS] Enhanced Garbage Truck AI[github.com] mod) will give you some pointers as to the code that's neeed.

There are some good sources of help for modding listed towards end of OP in this post.
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50