GetName - Form

From the CreationKit Wiki
Revision as of 10:02, 14 May 2012 by imported>Sagitarius22 (→‎Examples)
Jump to navigation Jump to search

SKSE Member of: Form Script

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


Syntax

String Function GetName(form BaseObject) native


Parameters

  • BaseObject: The base object we want the name.


Return Value

  • The name of the form as a string.


Examples

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

Notes

none


See Also