ReferenceAlias "Unique Player" or Game.GetPlayer()

Post » Mon Dec 03, 2012 11:35 pm

Hey,

i would like to understand what is - technically - the difference between using Game.Getplayer() or using a ReferenceAlias pointing to the player.
I know how they work, so telling me this one belongs to quest and blah won't help me at all, but a description WHY its an advantage would be again pretty helpfull. Also i would like to know if there is a runtime-performance advantage or sth like that = technical stuff.

Greetings
User avatar
Sunnii Bebiieh
 
Posts: 3454
Joined: Wed Apr 11, 2007 7:57 pm

Post » Mon Dec 03, 2012 6:36 pm

PlayerREF, and properties, is much much faster than Game.GetPlayer().

Other folks like JustinOther will have actual figures to show it, but that's it.
User avatar
Rob
 
Posts: 3448
Joined: Fri Jul 13, 2007 12:26 am

Post » Mon Dec 03, 2012 5:27 pm

As far as I am aware:
PlayerRef asks the game to check for the player once.
Game.getPlayer() ask the game to check every time its called.
User avatar
~Amy~
 
Posts: 3478
Joined: Sat Aug 12, 2006 5:38 am


Return to V - Skyrim