RewardPlayerXP - Game

Revision as of 12:33, 8 April 2015 by imported>Plplecuyer (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Game Script

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

SyntaxEdit

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

ParametersEdit

  • 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 ValueEdit

None

ExamplesEdit

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


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

See AlsoEdit