ID:270331
 
How do check the postition of a value in a list. Example:
src.contents.Add(new/obj/Potion,new/obj/Hat)


How would I get it to return a value that Hat is 2.
Or how do I check IF hat is 2?
Use list.Find().

var/number = src.contents.Find(locate(/obj/Hat) in src)


~~> Unknown Person