Jump to content

How to use weapons as ObjectRefence in papyrus?


Recommended Posts

I want to use a script to change the enchantment on the weapon I'm holding.

However, Weapon obtains Form data. If this data is changed, the data of all identical weapons in the game will be changed.

I saw someone on the forums say that you can throw items out and enchant them afterwards, but it didn't work for me when I tried it.

Does anyone know of a way or plugin to achieve the effect I want?

Link to comment
Share on other sites

I never tried it, but you should be able to just call "myWeaponRef.SetEnchantment( myEnchantment, 1600.0)" from a papyrus script.

There is a similar function on the Weapon form, but as you say, that would change all instances of the weapon type.  Calling it on the reference will not have that effect.

Note that if the weapon is in a container or carried by an actor, you can't access the object reference directly; move the item out into the open world first (using DropObject, for example).

Link to comment
Share on other sites

you might wanna look at this

https://ck.uesp.net/wiki/GetEquippedObject_-_Actor

if ya wanna know what holding in your hand, but it is a SKSE script and will require first casting has weapon to validate it is correct type of weapon, then casting again has object reference

but the trick is casting the weapon as objective reference which has a 3D on it)) how you do that is of no importance)) you drop it, hold it in your hand, all it need to be 3D Loaded into the Game to be an objective reference 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...