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); }
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); }
public SubPacket createSpeedPacket(uint playerActorId) { return(SetActorSpeedPacket.buildPacket(actorId, playerActorId)); }