Difference between revisions of "Player"

1 byte added ,  15:10, 7 October 2008
imported>Wrye
(Remove from glossary category.)
imported>Exemptnormal85
Line 6: Line 6:
* The player [[Glossary#B|base object]] is hardwired into the engine with formid 0x00000007.  
* The player [[Glossary#B|base object]] is hardwired into the engine with formid 0x00000007.  
* The player reference is also hardwired into the engine with formid 0x00000014.  
* The player reference is also hardwired into the engine with formid 0x00000014.  
** The player reference does not actually appear in Oblivion.esm. The gameengine automatically adds it at runtime.
** The player reference does not actually appear in Oblivion.esm. The game engine automatically adds it at runtime.
* When the string "player" is used in a script, it is compiled to refer to the player reference, ''not'' the player base object -- even though it is the base object that has the id "player".  
* When the string "player" is used in a script, it is compiled to refer to the player reference, ''not'' the player base object -- even though it is the base object that has the id "player".  
** If you need to refer to the player baseobject in a script, then you'll need to use its formid. (Or if using OBSE, use a call like "player.getBaseObject".)
** If you need to refer to the player baseobject in a script, then you'll need to use its formid. (Or if using OBSE, use a call like "player.getBaseObject".)