SetDisplayName - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
(Persistence with save game)
Tags: Mobile edit Mobile web edit
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Bool Function SetDisplayName(String asName, Bool abForce) native
Bool Function SetDisplayName(String asName, Bool abForce) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; rename the amulet
; rename the amulet
If myAmuletOfTalos.SetDisplayName("Amulet of the Ninth Divine", False) == False
If myAmuletOfTalos.SetDisplayName("Amulet of the Ninth Divine", False) == False
   Debug.Trace("Failed to rename the amulet. A quest alias may already be renaming it.")
   Debug.Trace("Failed to rename the amulet. A quest alias may already be renaming it.")
EndIf
EndIf
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu