RewardPlayerXP - Game

From the Fallout4 CreationKit Wiki
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]