SetName - Form

From the Fallout4 CreationKit Wiki
Revision as of 20:07, 12 October 2017 by imported>Qazaaq (style)
Jump to navigation Jump to search


F4SE member of: Form Script

Sets the name of the form to the passed in string. Requires F4SE 0.03.1.

Syntax

Function SetName(string name) Native

Parameters

  • name: The new name of this form.

Return Value

None

Examples

; Get the name of an object and change another object's name to that one.
string ObjName = FirstObj.GetName()
SecondObj.SetName(ObjName)

Notes

  • For actors and object references, must be used on the base object.
  • If calling on an actor, use a unique one.
  • May affect all instances of the form.

See Also