bigheadbrandon Posted June 5, 2011 Posted June 5, 2011 (edited) I know I've played with mods that add an armor item that opens a computer screen or menu when equipped, is it possible to apply the same logic to open the reload bench menu with an item? I have a basic understanding of GECK if you could just point me in the right direction it would be appreciated. Edited June 5, 2011 by bigheadbrandon
rickerhk Posted June 5, 2011 Posted June 5, 2011 I would start by making a copy of an armor item, call it MyReloadTrigger, for example. then untick it's biped slots. Then add a little script to it that uses the OnEquip block. I would start with this: scn MyReloadThingyScript BEGIN ONEquip player.showrecipemenu ReloadingBenchRecipes player.UnequipItem MyReloadTrigger END
bigheadbrandon Posted June 5, 2011 Author Posted June 5, 2011 I would start by making a copy of an armor item, call it MyReloadTrigger, for example. then untick it's biped slots. Then add a little script to it that uses the OnEquip block. I would start with this: scn MyReloadThingyScript BEGIN ONEquip player.showrecipemenu ReloadingBenchRecipes player.UnequipItem MyReloadTrigger END Thanks. Works nicely except for the crash upon closing the menu, I'm sure I can fine tune that though. This will definitely add some more depth to my mod in the long run.
Quetzlsacatanango Posted June 5, 2011 Posted June 5, 2011 Make sure MyReloadTrigger isn't a quest item. The game doesn't seem to like force unequipping quest items.
bigheadbrandon Posted June 5, 2011 Author Posted June 5, 2011 Make sure MyReloadTrigger isn't a quest item. The game doesn't seem to like force unequipping quest items. I changed the equip type from "bodywear" to "big guns" now it works without a hitch. Thanks for the suggestion though.
Recommended Posts