I've been going through the Papyrus tutorial stuff on the CK site. I'm still a little unclear on where to attach scripts in order to get the effect I want.
What I'm looking to do is trigger a script when the player draws or sheaths certain weapons: I want to alter the orientation of them, if this is possible.
I've found ObjectReference.setAngle, and I've found Actor.isWeaponDrawn. I'm unclear how to place the script to work the way I want.
If you'll forgive the pseudo-code, something like:
ObjectReference thisWeapon = thisActor player = Game.GetPlayer()if(player.isWeaponDrawn()) thisWeapon.setAngle(90,0,0)else thisWeapon.setAngle(-90,0,0)endif
If it's attached to the weapon in question, is there a way to trigger that on weapon draw/sheath? If not, can it be attached to the player to do something similar?
Thanks!