Tes3Mod:Operators

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search


->

                ->

        Type:   System

     Returns:   none

     Example:   if ( player->GetHealth <= 10 )
                "bk_fragmentonartaeum"->Enable

     Scripts:   

This is a reserved script operator used to access functions for a particular object reference. Use this when you wish to manipulate or access a specific object explicitly. Note that if multiple objects exist in the world you have no guarantee which one you'll access (the first one the game finds). Also note that if you wish to access an object from anywhere in the world you will need to ensure that the object's References Persist button is checked.

If the object ID on the left of the -> has any spaces in it you will need to enclose the ID with double-quotes. Leading underscores (_) on Object IDs also seem to have erratic results in the script editor. In some places they work fine, in other places the script editor chokes on them. It is recommended not to name objects with a leading underscore.