g133m
Greenhorn
New to the forums and a new SV modder.
I'm attempting to make a mod that, when the player pressed a hotkey, changes which item is active in the toolbar (has the red border on the slot) depending on certain criteria. I can't find anything in any documentation about setting the active item. I can try to swap items in the inventory, but if there is no active item (empty slot) I'm not sure I can figure out which slot is active, either.
Any pointers would be great!
EDIT: I see the correct section would be Mod Support if someone could please move it there!
I'm attempting to make a mod that, when the player pressed a hotkey, changes which item is active in the toolbar (has the red border on the slot) depending on certain criteria. I can't find anything in any documentation about setting the active item. I can try to swap items in the inventory, but if there is no active item (empty slot) I'm not sure I can figure out which slot is active, either.
Any pointers would be great!
EDIT: I see the correct section would be Mod Support if someone could please move it there!