Is there a public call to hook into when the player changes any of their equipment?
In my minimap mod, I currently use the compass item ID to check if the player swapped out his compass. This is embedded in a continual update loop. It would be better if it could be triggered only when the player changes equipment? Is there a public call for this, like other things, so I can run my code only when the player actually changes their equipment?
Equipment Change Update Call
-
- Posts: 1409
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Equipment Change Update Call
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
-
- Posts: 374
- Joined: Wed Oct 02, 2019 6:26 am
Re: Equipment Change Update Call
im not a coder but
do it when player accesses inventory?
do it when player accesses inventory?
-
- Posts: 1409
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: Equipment Change Update Call
Maybe. Issue there is it won't run the code at the right time. It needs to do it on equipment change to ensure it checks for the amulet change when the player changes it.
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.