Bnae 1431 Posted March 23, 2017 Hello _initems = items player; _items = ["item1","item2","item3","item4","item5"]; How to check if any of _items in _initems..? > True if any, false if non -Bnae Edit: This will do it _initems = items player; _items = ["item1","item2","item3","item4","item5"]; _count = count [{_x in _initems} forEach _items]; if {_count > 0} then ... If you have a better solution, please share it Would like to return the item that was in the array.. Share this post Link to post Share on other sites
Nikander 123 Posted March 23, 2017 Hello private _array = _items arrayIntersect items player; 1 Share this post Link to post Share on other sites
Bnae 1431 Posted March 23, 2017 4 minutes ago, Nikander said: Hello private _array = _items arrayIntersect items player; Thanks, that's exactly what i was looking for without knowing it 1 Share this post Link to post Share on other sites