Difference between revisions of "GetClassAttribute"
m
Fix typos in example, AttRibute
imported>Horny Quintus m (Spelling) |
imported>Rezero m (Fix typos in example, AttRibute) |
||
Line 7: | Line 7: | ||
'''Example:''' | '''Example:''' | ||
short | short FirstAttribute | ||
short | short SecondAttribute | ||
set | set FirstAttribute to player.GetClassAttribute 0 | ||
set | set SecondAttribute to player.GetClassAttribute 1 | ||
Gets the 1st and 2nd 'Primary Attributes' of player's class. | Gets the 1st and 2nd 'Primary Attributes' of player's class. | ||
==Notes== | ==Notes== | ||
*The parameter "'''''whichAttribute:short'''''" must be '''min: 0''' and '''max: 1'''. If you input a value greater than 1 this function will | *The parameter "'''''whichAttribute:short'''''" must be '''min: 0''' and '''max: 1'''. If you input a value greater than 1 this function will always return 0 (Strength). | ||
*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. |