Difference between revisions of "Scripting Tutorial: Get PlayerRef"
no edit summary
imported>Demolishun |
imported>Demolishun |
||
|
== 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).
[[Category: Scripting]]
[[Category: Useful Code]]
| |||