1. Oxide for Rust Legacy has been discontinued and is no longer supported. No updates or additions will be made, and Rust Legacy-specific plugin submissions will no longer be accepted. We recommend upgrading to the latest version of Rust as able.
    Dismiss Notice

Solved Removing wood from campfire?

Discussion in 'Legacy Discussion' started by DraB, Mar 14, 2017.

  1. DraB

    DraB Plugin Developer

    Is there a way I can remove the wood the comes with placing a campfire?
     
  2. Gute

    Gute Plugin Developer

    Missing forehead
    Code (Text):
     int Limpar (bool all)
            {
                Int destruído = 0;
                Foreach (DeployableObject deployable em UnityEngine.Resources.FindObjectsOfTypeAll <DeployableObject> ())
                {
                    If (deployable.gameObject.name == "Campfire (Clone)")
                    {
                        If (shouldDestroy (deployable.transform.position, all))
                        {
                            NetCull.Destroy (deployable.gameObject);
                            Destruído ++;
                        }
                    }
                }
                Retorno destruído;
            }[/CÓDIGO]
     
  3. DraB

    DraB Plugin Developer

    Solved
     
  4. Gute

    Gute Plugin Developer

    It worked?
     
  5. DraB

    DraB Plugin Developer

    I had a buddy make a plugin for it.
     
  6. AirMax

    AirMax Scavenger

    It's kind of a complete removal of the object - but can I delete those 5 pieces of wood when installing a bone?