MapServer.PlayerObject.SetCurrentRandom C# (CSharp) Method

SetCurrentRandom() public method

public SetCurrentRandom ( int nValue ) : void
nValue int
return void
        public void SetCurrentRandom(int nValue)
        {
            mnCurrentRandom = nValue;
        }

Usage Example

Exemplo n.º 1
0
 private void Action_Random_Init(ActionInfo info, PlayerObject play)
 {
     String[] option = info.param.Split(' ');
     int min = Convert.ToInt32(option[0]);
     int max = Convert.ToInt32(option[1]);
     play.SetCurrentRandom(IRandom.Random(min, max));
 }