Jump to content
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×