For a mod I'm doing I need to know the type of weapon that my attacker has equipped. I know how to get equipped weapon type for the player (see below) but how would I proceed to reference an actor that is not the player?
ref weapon
short weapontype
set weapon to player.http://cs.elderscrolls.com/index.php/GetEquippedObject 16
set weapontype to GetWeaponType weapon
Thank you