Difference between revisions of "GetClassAttribute"

Jump to navigation Jump to search
105 bytes added ,  16:44, 9 September 2007
Fixed syntax and notes
imported>WereWolf
(Fixed example)
imported>WereWolf
(Fixed syntax and notes)
Line 4: Line 4:


'''Syntax:'''
'''Syntax:'''
  (attribute:short) ''reference''.GetClassAttribute whichAttribute:short ''class:ref''
  (attribute:short) ''reference''.GetClassAttribute whichAttribute:short[0..1] ''class:ref''
'''Example:'''
'''Example:'''
  short FirstAttibute
  short FirstAttibute
Line 14: Line 14:


==Notes==
==Notes==
*'whichAttibute' will be: 0 = first attribute and 1 = second attribute.
*The parameter "'''''whichAttribute:short'''''" must be '''min: 0''' and '''max: 1'''. If you input a value greater than 1 this function will allways return 0 (Strenght).
*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