doboy 7 Posted March 18, 2016 I have no idea why this doesn't return the tag of an object. Am I missing something? void main() { object oPC = GetFirstPC(); object oItem = GetObjectByTag("u_a_unde_02"); string szMessage = GetTag(oItem); SendMessageToPC( oPC, szMessage); } Is there some condition in the game for GetObjectByTag() to work? For some reason when I assign oItem through a different function it will print the tag. void main() { object oPC = GetFirstPC(); object oItem = GetItemInSlot(1, oPC); string szMessage = GetTag(oItem); SendMessageToPC( oPC, szMessage); } That works? And I have tried out different strings to pass to GetObjectByTag(). Quote Share this post Link to post Share on other sites
Fair Strides 509 Posted March 19, 2016 GetObjectByTag applies to objects in the level itself. If you want to get an object that is inside someone's inventory, you can try this: void main() { string sTag; object oItem = GetItemPossessedBy(GetObjectByTag("<tag of creature, placeable, or store>"), "<tag of object>"); if(GetIsObjectValid(oItem)) { sTag = GetTag(oItem); } else { sTag = ""; } } And you've already found out how to get an item that is equipped. Quote Share this post Link to post Share on other sites
doboy 7 Posted March 19, 2016 Ah thank you so much! I was on the verge of losing my sanity for a moment there Quote Share this post Link to post Share on other sites