Butters Posted February 24, 2018 Share Posted February 24, 2018 Say I have a situation where doing something by object name is not sufficient (all items have the same name) What's different - object ids and models ids. What would be the proper way to distinguish these items so it's least prone to break - hardcode object id or model id? Thanks Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted February 24, 2018 Share Posted February 24, 2018 I'd go for model ids myself. Are you sure positions are not something you can work with as well? 1 Quote Link to comment Share on other sites More sharing options...
Butters Posted February 24, 2018 Author Share Posted February 24, 2018 6 minutes ago, Eagle Scripts said: I'd go for model ids myself. Are you sure positions are not something you can work with as well? Nah it's an inventory item 1 Quote Link to comment Share on other sites More sharing options...
liverare Posted February 26, 2018 Share Posted February 26, 2018 Items? You can use IDs for items, as I doubt they've ever changed and are unlikely to. Game objects? You should use names where possible. If not, model ids are also fairly consistent too. Quote Link to comment Share on other sites More sharing options...