Alral Posted November 5, 2016 Share Posted November 5, 2016 (edited) Good day. Is there any way to determine which category does an item fall under for any given item (incl. those from third-party mods, etc) via a script? Just as they are shown in the Object tree (or in the PipBoy, for that matter) to be either Weapon, Armor, Ammo, Consumable, Misc, etc... "RemoveAllTypedItems" might be a solution, but I don't really like it. Besides, it doesn't look exactly like what I need. Thank you! Edited November 5, 2016 by Alral Link to comment Share on other sites More sharing options...
PushTheWinButton Posted November 5, 2016 Share Posted November 5, 2016 (edited) Vanilla GECK: GetIsFormType, GetIsObjectType FOSE: GetObjectType Edited November 5, 2016 by PushTheWinButton Link to comment Share on other sites More sharing options...
Alral Posted November 5, 2016 Author Share Posted November 5, 2016 That's what I was looking for. Thanks a lot! Link to comment Share on other sites More sharing options...
Alral Posted November 6, 2016 Author Share Posted November 6, 2016 And another question now arises.How can I do the same, but using a base id instead of a reference, is there a direct function? For example, if I want to get a form type of an item in a container, is it achievable without looking for temporate references (and creating buffer variables which I would prefer to avoid)? Link to comment Share on other sites More sharing options...
PushTheWinButton Posted November 6, 2016 Share Posted November 6, 2016 Just use GetObjectType (or its alias, GetType) - it can take a reference or a form. I've never actually used the vanilla functions so I didn't realise they were only for references. Link to comment Share on other sites More sharing options...
Alral Posted November 6, 2016 Author Share Posted November 6, 2016 OK, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts