- Messages
- 4,450
In Kinggath's Bethesda Tutorial series, he said the following is a low impact way to ref the PC:
Actor akPlayerRef = Game.GetPlayer()
Yet, on the Creation Kit Wiki:
Actor Property akPlayerRef Auto ; Least 'expensive' way to refer to the player
The former would be a temp var, but would need to be called for every Function / Event that requires a PlayerRef. The latter would be available for all Functions / Events in the script.
Is this a use case scenario where the former would be for a quick check while the latter would be more advantageous in a script that requires heavy use of a PlayerRef?
Actor akPlayerRef = Game.GetPlayer()
Yet, on the Creation Kit Wiki:
Actor Property akPlayerRef Auto ; Least 'expensive' way to refer to the player
The former would be a temp var, but would need to be called for every Function / Event that requires a PlayerRef. The latter would be available for all Functions / Events in the script.
Is this a use case scenario where the former would be for a quick check while the latter would be more advantageous in a script that requires heavy use of a PlayerRef?