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

mastaZz

How to make the guns out of dead bodies disappear in a minute?

Recommended Posts

 

this code from the forum very quickly removes the dead

    override void OnClientRespawnEvent(PlayerIdentity identity, PlayerBase player) //
    {
        // note: player is now killed in db right after the actual kill happens 
        /*if (GetHive() && player)
        {
            GetHive().CharacterKill(player);
        }*/
        if(player)
        {
            if (player.IsUnconscious() || player.IsRestrained())
            {
                // kill character
                player.SetHealth("", "", 0.0);
            }
        }
        
        // DELETE THE CORPSE AFTER RESPAWN
        GetGame().ObjectDelete(player);


and how to make the guns from the corpses disappeared in a minute?

Share this post


Link to post
Share on other sites

 

but then if you look at the gun it will not disappear. 

and I would like the weapon that appeared on the map did not disappear, and only the weapon that fell from the trap disappeared

Share this post


Link to post
Share on other sites

×