Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

jazzraill

How do zombies handle pathfinding?

Recommended Posts

I've been looking for this for days yet I can't figure how do zombies (and other entities maybe) use pathfinding and navigating throught the terrain. Specially the function handling it. 

Share this post


Link to post
Share on other sites

I had search that too to enhance my PvZmoD Dark Horde but the pathfinding things seam to not be accessible to modders.

The only thing I found is code related to groups of zombies moving. This was used in the "survival game" DLC but as SG is not developed any more, I think the zombie group behaviors are not developed anymore.

If you want to dig this, look at the classes : AIGroup, AIGroupBehaviour, BehaviourGroupInfectedPackWaypointParams, BehaviourGroupInfectedPack
I didn't succeed to use them because some classes seem to be private and not usable for modding.

If you find a way to use pathfinding, I'm very very interested.

Share this post


Link to post
Share on other sites

True that.. I had no luck accesing pathfinding functions still. There are functions to add waypoints, cycle them etc. but still, no function loop for getting positions on navmesh and making AI move to them. My last resort will be using the method explained here: 

 

Share this post


Link to post
Share on other sites

×