Trandoshan Posted February 7, 2010 Share Posted February 7, 2010 I can't seem to formulate a workaround for a script that detects whether a NPC has armor or clothing in a particular slot. Does anyone have any ideas on how to create a script that returns "1" if the player has no objects equipped on a particular body slot using OBSE's GetEquippedObject (but of course, not solely relying on it) function? I know for a fact that this function returns a "reference" and does not return a "float". I need a function that detects any items equipped and not a specific reference so that I can create a script that detects if the player has anything currently equipped in the upper/lower/hands/feet/ect slot. Is there a way? Link to comment Share on other sites More sharing options...
Argomirr Posted February 7, 2010 Share Posted February 7, 2010 I may very well be wrong, but doesn't GetEquippedObject return 0 if there's nothing in that particular slot? Some other reference returning functions do, at least. So perhaps try something like:If GetEquippedObject 2 == 0 Might work. Link to comment Share on other sites More sharing options...
Trandoshan Posted February 8, 2010 Author Share Posted February 8, 2010 I didn't see that in the documentation. Thanks for pointing it out! Link to comment Share on other sites More sharing options...
Recommended Posts