Belthan Posted April 16, 2014 Share Posted April 16, 2014 EDIT: Never mind; I added player.setav InventoryWeight 40 to the activator and put triggers at the possible drop spots to enable the correct REF and player.setav InventoryWeight -40 if the player chooses to deploy the gear at that location. Will leave the question and original script here for reference. Working on a quest in which the player must retrieve a bulky item and return it to a specific location. Currently implemented as two activators (one at the fetch location and one at the return location). The activator script disables both activators and adds a miscellaneous item to the player's inventory. The miscellaneous item script either enables one of the activators or does nothing, depending on the players location. I don't want the player to be able to drop the item just anywhere (because it might break the quest, and I don't really want to make a havok-enabled version of the NIF). However, if I set the Quest Item flag, the item weighs 0, which breaks immersion. So, I did the following: SHORT DeleteMe short AwaitingInput short button BEGIN OnDrop set AwaitingInput to 1 showmessage cesHolocameraDropMessage END BEGIN GameMode if AwaitingInput == 1 set button to GetButtonPressed if button > -1 set AwaitingInput to 0 if button == 0 ; Drop at destination cesHolovidCameraLpzREF.enable elseif button == 1 ; Drop at original location cesHolovidCameraSLREF.enable else ; Keep carrying it player.additem cesHolovidCameraItem 1 1 endif set DeleteMe to 1 endif endif if DeleteMe > 2 ; In the frame when OnDrop is called, object isn't "real" yet. set DeleteMe to 0 disable MarkForDelete elseif DeleteMe > 0 set DeleteMe to DeleteMe + 1 endif ENDIt works, but after the item is disabled a "Take Item" message stays on the HUD until the next time the player comes close to something with collision geometry. So, is there an easier way to either force a quest item to have weight, or to make a non-quest item undroppable? Link to comment Share on other sites More sharing options...
Recommended Posts