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

Description

Wiki Description

Returns the name of the passed form. (This function requires SKSE)

Documentation Comment

returns the form's name, full name if possible


Caveats

CK Wiki - Notes

  • This function does not work on actors or object references, use the actor base or base object instead.
  • This doesn't return the name in its EditorID form. But name under the name column. If using this function, take in account for forms that may not have a name.

Examples

; Obtain Bob's name and show a message using it.
String BobName = Bob.GetBaseObject().GetName()
Debug.MessageBox("My name's " + BobName + "!")
; My name's Bob!
; Remove all the NPC's items if his name's Bob
if BobReference.GetBaseObject().GetName() == "Bob"
  BobReference.RemoveAllItems()
endif

Auto-Generated Example

string returnedValue = myForm__toCallFunctionOn.GetName()

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.