Referncing Player

Post » Sun Feb 16, 2014 6:20 pm

I have a function that has a parameter that reference to the player but it does not seem to work.

The code below prints both the names of the player and the object

   let item := player.GetEquippedObject i   MessageEx "%n is wearing %n " actor item

However the code below only prints the name of the player but the object it prints ""

   let item := actor.GetEquippedObject i   MessageEx "%n is wearing %n " actor item

Why can I not reference to player?

User avatar
El Goose
 
Posts: 3368
Joined: Sun Dec 02, 2007 12:02 am

Post » Sun Feb 16, 2014 10:53 am

Use playerref of course. Couldn't figure it out for ages then I find it within minutes after posting.

User avatar
Skrapp Stephens
 
Posts: 3350
Joined: Mon Aug 06, 2007 5:04 am


Return to IV - Oblivion