Background for Skyrim SE
Member of the Form script
voidfunctionSetName(stringname)Native

Description

Wiki Description

Sets the name of the form. (This function requires SKSE)

Documentation Comment

sets the name of the form


Caveats

CK Wiki - Notes

  • This function does not work on actors or object references, use the actor base or base object instead.
  • This will affect all instances of the passed form. It's better to be used on a unique actor.
  • Name changes will not be saved and must be maintained via a maintenance setup or something similar.

Parameters

stringname

CK Wiki Description

the new name for this form.


Examples

; Set Bob's name to be Bobinsky
BobReference.GetBaseObject().SetName("Bobinsky")
; My name's now Bobinsky!
; Set the Bob's name to be Bob + player's name (here, player is named Bobby
BobReference.GetBaseObject().SetName("Bob "+Game.GetPlayer().GetBaseObject().GetName())
; Bob is now named Bob Bobby!
endif
; Set the form's name to be Sam, through a Reference Alias.
VillagerAlias.GetReference().GetBaseObject().SetName("Sam")

Auto-Generated Example

string myString__name

myForm__toCallFunctionOn.SetName(myString__name)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.