Equipment Change Update Call

Discuss modding questions and implementation details.
Post Reply
l3lessed
Posts: 1403
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Equipment Change Update Call

Post by l3lessed »

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?
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.

Regnier
Posts: 374
Joined: Wed Oct 02, 2019 6:26 am

Re: Equipment Change Update Call

Post by Regnier »

im not a coder but

do it when player accesses inventory?

l3lessed
Posts: 1403
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Re: Equipment Change Update Call

Post by l3lessed »

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.

Post Reply