Difference between revisions of "GetClassAttribute"

Jump to navigation Jump to search
283 bytes added ,  16:22, 9 September 2007
Added example
imported>WereWolf
(Fixed categories)
imported>WereWolf
(Added example)
Line 5: Line 5:
'''Syntax:'''
'''Syntax:'''
  (attribute:short) ''reference''.GetClassAttribute whichAttribute:short ''class:ref''
  (attribute:short) ''reference''.GetClassAttribute whichAttribute:short ''class:ref''
'''Example:'''
short FirstAttibute
short SecondAttibute
set FirstAttibute to player.GetClassAttibute 0
set SecondAttibute to player.GetClassAttibute 1
Gets the first and second attribute of player's class.


==Notes==
==Notes==
*'whichAttibute' will be: 0 = first attribute and 1 = second attribute.
*If called on a reference it will attempt to find the class from that referenced NPC and use that.
*If called on a reference it will attempt to find the class from that referenced NPC and use that.
*If a class FormID is passed, that takes precedence.
*If a class FormID is passed, that takes precedence.
Anonymous user

Navigation menu