Difference between revisions of "Talk:HasPerk"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Henning
imported>Cipscis
 
Line 1: Line 1:
==Return Value==
It seems as though HasPerk doesn't actually return the player's rank in the specified perk, it only ever returns 1 (if player's rank in perk is greater than 0) and 0 (player doesn't have the perk).  Here's a link to [http://www.bethsoft.com/bgsforums/index.php?showtopic=961085 my post] on the Bethesda Fallout forums and a link to [http://www.bethsoft.com/bgsforums/index.php?showtopic=924806&hl=hasperk Kelenius's Post] for a workaround.<br />
It seems as though HasPerk doesn't actually return the player's rank in the specified perk, it only ever returns 1 (if player's rank in perk is greater than 0) and 0 (player doesn't have the perk).  Here's a link to [http://www.bethsoft.com/bgsforums/index.php?showtopic=961085 my post] on the Bethesda Fallout forums and a link to [http://www.bethsoft.com/bgsforums/index.php?showtopic=924806&hl=hasperk Kelenius's Post] for a workaround.<br />
-cscottydont- 27 February 2009
-cscottydont- 27 February 2009
:Sorry about the confusion, I just tested [[HasPerk]] in the console and in a script and it looks like it correctly returns the rank when used in the console, but only returns 0 or 1 when used in a script.<br />Oh, and in future please sign your posts with <nowiki>~~~~</nowiki><br />-- [[User:Cipscis|Cipscis]] 03:55, 28 February 2009 (UTC)

Latest revision as of 22:55, 27 February 2009

Return Value[edit source]

It seems as though HasPerk doesn't actually return the player's rank in the specified perk, it only ever returns 1 (if player's rank in perk is greater than 0) and 0 (player doesn't have the perk). Here's a link to my post on the Bethesda Fallout forums and a link to Kelenius's Post for a workaround.
-cscottydont- 27 February 2009

Sorry about the confusion, I just tested HasPerk in the console and in a script and it looks like it correctly returns the rank when used in the console, but only returns 0 or 1 when used in a script.
Oh, and in future please sign your posts with ~~~~
-- Cipscis 03:55, 28 February 2009 (UTC)