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  
M_Mengxin

How do I bind the weapon to the vip player, other players will disappear when using the weapon

Recommended Posts

How do I bind the weapon to the vip player, other players will disappear when using the weapon

Share this post


Link to post
Share on other sites
On 2/3/2022 at 10:50 PM, M_Mengxin said:

How do I bind the weapon to the vip player, other players will disappear when using the weapon

The simplest way but that might be too not optimized is override the mission. But it shall done it through the mod on client side. And define nesesary RPC event to sync list between your server with configs and player X client.

So idea is - client X picking the weapon, override event when client are take something, we shall get EntityAI as parameter like item that olayer got. Then you shall check item type for example blocked weapon for all is SKS and vip players may carry it. Check is entityai kindof "sks" (but better SKS_Base, coz game also has sks_black & sks_green) if true - throw away the weapon or just remove it from player's inventory, in other cases - do nothing.

Share this post


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

×