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

Sign in to follow this  
wbulot

Get all zombies entity arround position

Recommended Posts

Hi Guys,

I can't find out how to get all zombies entities around a specific position.

Is there a function to do that ? Like GetGame().GetPlayers() but for zombies or something to get all objects around where I could filter by zombies.

Thank you

Share this post


Link to post
Share on other sites

A little late but if you still need it:

https://gist.github.com/greeneman42/54aa86a56e2a8617778f48e727a427dd

Returns an array of nearby zombies as type Object.  You might need to cast it to something else like ZombieBase for whatever you're trying to do.

Note: It will return dead zombies too!

Edited by Dylan Greene

Share this post


Link to post
Share on other sites
Sign in to follow this  

×