RewardPlayerXP - Game

From the Fallout4 CreationKit Wiki
Revision as of 12:33, 8 April 2015 by imported>Plplecuyer (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Game Script

Rewards the player with a certain amount of XP, optionally bypassing any XP modifiers.

Syntax[edit | edit source]

Function RewardPlayerXP(int auiXPAmount, bool abDirect = false) native global

Parameters[edit | edit source]

  • auiXPAmount: The amount of XP to reward the player
  • abDirect: If true, will bypass any XP modifiers applied to the player and reward the XP 'directly'.
    • Default: False

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Give the player 50 XP
Game.RewardPlayerXP(50)


; Give the player 50 XP, unaffected by XP modifiers
Game.RewardPlayerXP(50, false)

See Also[edit | edit source]