Jump to content

[SCRIPTING] Inventory item click


Maxandmov

Recommended Posts

Hello, guys. As far as (most of you) probably know, there is JIP CCC modification. Jazzisparis wrote some kind of gear override function there, and you were able to pick NPC's gear by clicking RMB on it. The question is simple: How do I detect when I click the item and how do I figure out this particular item's base ID? Thanks in advance.

Edited by Maxandmov
Link to comment
Share on other sites

I think Jazz probably used the GetSelectedItemRef function from his NVSE plugin. It returns an inventory reference for the currently highlighted item in a menu. You can convert this to a form using GetBaseObject or use the inventory reference directly. Detecting when a key is pressed can be done with IsKeyPressed or IsControlPressed.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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