Difference between revisions of "GetName - Form"
Jump to navigation
Jump to search
style and example tweak for actor name
imported>Tania m (typo) |
imported>Qazaaq (style and example tweak for actor name) |
||
Line 20: | Line 20: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; If you want to know the name of player's current cell. | ; If you want to know the name of player's current cell. | ||
string cellName = Game.GetPlayer().GetParentCell().GetName() | |||
Debug.Trace("My parent cell's name is: " + cellName) | |||
; If you want to know an actor's name. | ; If you want to know an actor's name. | ||
PrestonRef.GetActorBase().GetName() | string prestonName = PrestonRef.GetActorBase().GetName() | ||
Debug.Trace(prestonName + " says hello.") | |||
</source> | </source> | ||