1. Hi everyone is there anyway to stop weapon attachments being removed in certain situations and same for accepting attachments. Thanks :)
     
  2. Calytic

    Calytic Community Admin Community Mod

  3. how do check if the container is one of a weapon?
    [DOUBLEPOST=1481148475][/DOUBLEPOST]nvm I figured it out
    Code:
    if (container.parent.info.category == ItemCategory.Weapon)
                {
                    Puts("container is gun");
                } 
    
     
    Last edited by a moderator: Dec 7, 2016
  4. It is propably easier to flag the item.contents container as locked.
     
  5. So how would I flag the item contents of the weapon?
    [DOUBLEPOST=1486291561][/DOUBLEPOST]i found it
    Code:
    item.contents.SetLocked(true);