Hi again!
I'm trying to do a boolean function to return true/false depending on self's owning an item or not:
However, I'm failing to see how 'items' actually work. What would be the usual way to check if a weapon is already in the items list? It does kind of look like a list or an array but not really so I'm slightly confused (I'm looping through all .qc files trying to see if I can find some line that performs a similar check but no luck so far). Also my background is C#, JS and Python, so no C or C++ xpPoints at all.
Best,
wizardmachine
I'm trying to do a boolean function to return true/false depending on self's owning an item or not:
if (items.Contains(itemIndex))
{
{
// do something!
}
Best,
wizardmachine
Comment