Talk:SetHotkeyItem
There are no discussions on this page.
I have a question. I have obse 15a installed and i find SetHotkeyItem a very useful function. My problem is that it only work with items. When i try to save a script with a spell as a hotkey, i get an "invalid inventory object" error. What's wrong?
--Troybayliss
- That's normal for OBSE functions. Spells aren't expected for vanilla functions, so you have to work around it by first assigning the spell to a ref var, then using SetHotkeyItem hotkey# refvar.
- --Haama 23:52, 1 October 2008 (EDT)