Difference between revisions of "GetName - Form"

Jump to navigation Jump to search
62 bytes added ,  20:12, 12 October 2017
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 sCellName = Game.GetPlayer().GetParentCell().GetName()
string cellName = Game.GetPlayer().GetParentCell().GetName()
debug.trace("My parent cell's name is: " +sCellName)
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>


Anonymous user

Navigation menu