AddPerkPoints - Game

Revision as of 15:31, 5 November 2012 by imported>JLundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' Game Script Adds the specified number of perk points to the player. The result is clamped at 255. This will e...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Game Script

Adds the specified number of perk points to the player. The result is clamped at 255. This will enable the player to choose additional perks.

Syntax

Function AddPerkPoints(int aiPerkPoints) native global

Parameters

  • aiPerkPoints: The number of perk points to add.

Return Value

None

Examples

; Give the player 5 more perk points.
Game.AddPerkPoints(5)

Notes

  • The resulting sum will not go above 255.
  • Negative values are ignored.

See Also