Jump to content

Borderlands style interactions


SpartanISW108

Recommended Posts

  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

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

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

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 rude

EDIT3: 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 by ilyasw
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...