예제 #1
0
        public void changeSpeed(int type, float value)
        {
            moveSpeeds[type] = value;
            SubPacket changeSpeedPacket = SetActorSpeedPacket.buildPacket(actorId, actorId, moveSpeeds[0], moveSpeeds[1], moveSpeeds[2]);

            zone.broadcastPacketAroundActor(this, changeSpeedPacket);
        }
예제 #2
0
        public void changeSpeed(float speedStop, float speedWalk, float speedRun)
        {
            moveSpeeds[0] = speedStop;
            moveSpeeds[1] = speedWalk;
            moveSpeeds[2] = speedRun;
            moveSpeeds[3] = speedRun;
            SubPacket changeSpeedPacket = SetActorSpeedPacket.buildPacket(actorId, actorId, moveSpeeds[0], moveSpeeds[1], moveSpeeds[2]);

            zone.broadcastPacketAroundActor(this, changeSpeedPacket);
        }
예제 #3
0
 public SubPacket createSpeedPacket(uint playerActorId)
 {
     return(SetActorSpeedPacket.buildPacket(actorId, playerActorId));
 }