Jump to content

OBSE - Detecting if player is currently using a body slot.


Trandoshan

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...