Skip to main content
Version: 5.7.0

SetExperiencePoints

Sets the user's experience to an absolute value. Note that this is simply a set and will not reward the player if their level changes as a result.

ServiceOperation
playerStatisticsSET_XPPOINTS

Method Parameters

ParameterDescription
xpValueThe amount to set the the user's experience to

Usage

http://localhost:3000
int xpValue = 1;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PlayerStatisticsService.SetExperiencePoints(xpValue, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}