LoadPartSnapshot() public static method

public static LoadPartSnapshot ( Vessel vessel, ConfigNode node, Vector3 position, Quaternion rotation ) : Part
vessel Vessel
node ConfigNode
position Vector3
rotation Quaternion
return Part
Exemplo n.º 1
0
        private bool TakeStoredInstance(ConfigNode node, Vessel vessel)
        {
            Part newPart = KAS_Shared.LoadPartSnapshot(vessel, node, Vector3.zero, Quaternion.identity);

            KASModuleGrab moduleGrab = newPart.GetComponent <KASModuleGrab>();

            if (!moduleGrab || !moduleGrab.GrabPending())
            {
                KAS_Shared.DebugError("Take(Container) Cannot grab the part taken, no grab module found !");
                newPart.Die();
                return(false);
            }

            return(true);
        }