Background for Fallout 4
Member of the Form script
voidfunctionSetName(stringname)Native

Description

Wiki Description

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

Documentation Comment

sets the name of the form


Caveats

CK Wiki - 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.

Parameters

stringname

CK Wiki Description

The new name of this form.


Examples

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

Auto-Generated Example

string myString__name

myForm__toCallFunctionOn.SetName(myString__name)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.