Difference between revisions of "GetClass"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(Added example)
imported>WereWolf
 
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
'''Syntax:'''
(class:ref) reference.GetClass


Returns the class of the NPC.
Returns the class of the NPC.


'''Syntax:'''
(class:ref) reference.GetClass
'''Example:'''
'''Example:'''
  ref MyClass
  ref MyClass

Latest revision as of 13:17, 14 September 2007

A command for Oblivion Script Extender

Syntax:

(class:ref) reference.GetClass

Returns the class of the NPC.

Example:

ref MyClass
set MyClass to player.GetClass

Get the class of the player and store the ref_id in MyClass ref variable.

See Also[edit | edit source]