RewardPlayerXP - Game
Revision as of 12:33, 8 April 2015 by imported>Plplecuyer (→See Also)
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)