SpartanISW108 Posted March 30, 2014 Share Posted March 30, 2014 Hello, I was wondering if it would be possible to make a script that makes the weapon pick up like on Borderlands What I mean is, where if you look at a weapon and hold the "interact" key, the weapon will be automatically equippedSimple request :) Link to comment Share on other sites More sharing options...
devinpatterson Posted March 31, 2014 Share Posted March 31, 2014 What I mean is, where if you look at a weapon and hold the "interact" key, the weapon will be automatically equipped sort of. It's easy to add a script with a equip function under an onAdd block. That way if you pick up a weapon it's automatically equipped. I know that's rock solid and would work fine. But you'd be doing that for all weapons (script attached to each). Alternately you could have a single quest script that onAdd to player container, tests against a formlist of all weapons (or a type code, 40 is weapons) and if true, the script automatically equips the weapon. I'm a little less sure on how easy that would be to do. A quest script uses explicit syntax so your going to have to have a var to hold whatever ref the player picked up, to feed to an equip function. And I'm not even sure an onAdd block would work correctly in a quest script or if/how to direct it to apply only to items picked up by the player. So I'm not really sure it is a simple request. But I'm not a script guy, maybe Jazzisparis or another script guru could shed some light on the problem (and offer a superior solution). The third relies on a function NVSE function to get a reference under a crosshair Link to comment Share on other sites More sharing options...
devinpatterson Posted March 31, 2014 Share Posted March 31, 2014 OK might have found an easier way, if I can attach a script to the player directly. I"ll try and test it soon. Link to comment Share on other sites More sharing options...
SpartanISW108 Posted April 2, 2014 Author Share Posted April 2, 2014 If you could get this to work that'd be awesome. I know it's possible to hold keys in scripts and that's about it really. I'm not good with scripting for Fallout Link to comment Share on other sites More sharing options...
devinpatterson Posted April 2, 2014 Share Posted April 2, 2014 I was asking around a bit about advice on a object script attached to the player and Gribbleshnibit8 said he's already made such a mod, located here; Grab and Go. Give it a shot and see if it works for you. Link to comment Share on other sites More sharing options...
SpartanISW108 Posted April 2, 2014 Author Share Posted April 2, 2014 Sweet man, will give that one a look over now. Do you know if there's any weapon drop mods? Like I can press a shortcut key and the weapon I have equipped will be dropped from my hands? Link to comment Share on other sites More sharing options...
devinpatterson Posted April 2, 2014 Share Posted April 2, 2014 Sweet man, will give that one a look over now. Do you know if there's any weapon drop mods? Like I can press a shortcut key and the weapon I have equipped will be dropped from my hands? I don't personally know of any, but that doesn't mean much, it could be hiding among the kajillion mods on nexus. However if you can't find one like it, it's pretty easy to make, as long as you don't mind installing NVSE. NVSE is used in so many mods you pretty much have to install it to take advantage of all that nexus has to offer. Anyway do a search, if you don't come up with anything, reply back in this thread (I have it tagged as watched, no PMs please) and I'll make one for you. Just let me know what key you want to use to drop the item. Link to comment Share on other sites More sharing options...
SpartanISW108 Posted April 2, 2014 Author Share Posted April 2, 2014 (edited) Thanks man, I've read that there is a similar feature on a couple of forum posts for some mod. But it's beyond my memory capacity.I have NVSE installed anyway it's a bare minimum for me.I WAS looking into how to do it myself, but I'm not that great in scripting.The only thing I can think of is the "Getequipped" function, and an "if" statement if the PC is holding a quest item or just equipped fists (don't wish to drop either of those)Like "if fists or quest items are equipped display the generic message 'Quest items cannot be removed from inventory', else drop object (but I'm not sure if there's a command for that)"Muchly appreciating the help though EDIT: If you could make this for me and make it bound to the "X" key that'd be great :smile:EDIT2: Or at least tell me how I'd go about doing this myself, sorry I didn't mean to come across as rudeEDIT3: I used the mod that you suggested and it works exactly as I wished it to. It's actually better having it as a grab+interact action than a hold, means I won't accidentally pick up weapons Edited April 2, 2014 by ilyasw Link to comment Share on other sites More sharing options...
devinpatterson Posted April 2, 2014 Share Posted April 2, 2014 There is a drop function as well as a getEquipped function and a isWeaponOut function. But the drop function needs to be passed a refID. getEquippedObject that can be directed to check the weapon (equip slot #5), but it returns a base value and we need a ref. So I'll see what I can figure out. Bit slammed though, so I don't expect to have any time to mod until (at teh soonest) the weekend. Link to comment Share on other sites More sharing options...
devinpatterson Posted April 2, 2014 Share Posted April 2, 2014 OBTW you dind't come across rude in any way Link to comment Share on other sites More sharing options...
Recommended Posts