[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "Scripting Tutorial: Get PlayerRef"
Jump to navigation
Jump to search
no edit summary
imported>Demolishun |
imported>Demolishun |
||
Line 31: | Line 31: | ||
== Conclusion == | == Conclusion == | ||
I can't remember where I found the simpler approach of assigning player to a ref variable to force the engine to compile player into a ref during that instance. That is funny thing about player. It can be a base object or a ref depending upon context. So by setting player to a ref variable we create the context where player returns its ref (0x14) rather than its base object (0x07). | I can't remember where I found the simpler approach of assigning player to a ref variable to force the engine to compile player into a ref during that instance. That is funny thing about player. It can be a base object or a ref depending upon context. So by setting player to a ref variable we create the context where player returns its ref (0x14) rather than its base object (0x07). | ||
[[Category: Scripting]] | |||
[[Category: Useful Code]] |