SetName - Form

From the Fallout4 CreationKit Wiki
Revision as of 14:45, 21 January 2018 by imported>Qazaaq (added required f4se version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

F4SE member of: Form Script
Requires F4SE version 0.3.1 or higher.

Sets the name of the form to the passed in string.

Syntax[edit | edit source]

Function SetName(string name) Native

Parameters[edit | edit source]

  • name: The new name of this form.

Return Value[edit | edit source]

None

Examples[edit | edit source]

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

Notes[edit | edit source]

  • 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[edit | edit source]