Difference between revisions of "GetName - Form"
Jump to navigation
Jump to search
imported>Tania (Added F4SE member page for GetName.) |
imported>Tania m (typo) |
||
Line 1: | Line 1: | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category: | [[Category:Papyrus]] | ||
[[Category:F4SE]] | [[Category:F4SE]] | ||
Revision as of 04:04, 13 May 2017
F4SE member of: Form Script
Gets the name of the form, full name if possible. Requires F4SE 0.03.1.
Syntax
string Function GetName() Native
Parameters
None
Return Value
The name of the form as a string.
Examples
; If you want to know the name of player's current cell.
String sCellName = Game.GetPlayer().GetParentCell().GetName()
debug.trace("My parent cell's name is: " +sCellName)
; If you want to know an actor's name.
PrestonRef.GetActorBase().GetName()
Notes
- For actors and object references, must be used on the base object.
- The return value is the name found under the name column for objects in the editor.