SetName - Form

From the Fallout4 CreationKit Wiki
Revision as of 23:18, 14 May 2017 by imported>Tania (Added F4SE member page SetName.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: 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