Difference between revisions of "GetClassAttribute"
Jump to navigation
Jump to search
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== | ||
*' | *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. |