Difference between revisions of "StrSetName"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Talkie Toaster
imported>Tibixe
(complete rewrite)
Line 1: Line 1:
'''Syntax:'''
'''Function:'''
[ref].StrSetName ''''StringRef:long''''
''[ref.]''StrSetName ''newName:stringID'' ''[objectToSet:ref]''
'''Example:'''
'''Example:'''
Player.StrSetName newname
Player.StrSetName newname


Sets the name of the reference it's called on to the contents of the StringRef provided. May take an ObjectID as an optional parameter- not yet tested.
Changes the name of ''objectToSet'' if available, if not, it sets name of base object of the reference. The new name will be the string associated with ''newName''.


[[Category: Functions (OBSE)]]
[[Category: Functions (OBSE)]]

Revision as of 11:49, 10 August 2007

Function:

[ref.]StrSetName newName:stringID [objectToSet:ref]

Example:

Player.StrSetName newname

Changes the name of objectToSet if available, if not, it sets name of base object of the reference. The new name will be the string associated with newName.