How to reference something that is not the player

Post » Tue Sep 11, 2012 11:02 am

Hi,

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
User avatar
Sista Sila
 
Posts: 3381
Joined: Fri Mar 30, 2007 12:25 pm

Return to IV - Oblivion