I do not know exactly how to find out if an inventory contains something, the only thing that has occurred to me is the following code but it does not work. Does anyone know the right way to do this? Thank you
C#:
if (player.Inventory.Items.Contains("M4")) //ERROR this line
{
player.Message("you inventory contains M4");
}
else
{
player.Message("you inventory NO contains M4");
}