Messy code, please help me clean!

Alright guys, I have this really messy code that I just can’t get cleaned.


// P R E L O A D   V A R I A B L E S
function loadVars(target, team):Void {
    var playerVar:Object = new Object();
    playerVar = eval(target);
    playerVar.team = team;
    playerVar.hp = 2;
    playerVar.moveSpeed = 4;
    playerVar.xSpeed = 0;
    playerVar.ySpeed = 0;
    playerVar.vRotation = 0;
    playerVar.hRotation = 0;
    playerVar.rotation = 0;
    playerVar.vMove = false;
    playerVar.hMove = false;
    playerVar.action = false;
    playerVar.isLoaded = true;
    playerVar.charState = "idle";
    playerVar.waitShot = null;
    playerVar.coolDown = 0;
    playerVar.coolDownRate = 3.7;
    playerVar.coolDownInit = false;
    playerVar.shotInit = false;
    playerVar.reload = 0;
    playerVar.reloadRate = .5;
    playerVar.reloadInit = false;
}

I’ve tried using with() and telltarget(), but those gave me no results. Either I’m doing it wrong, or I don’t know the proper use of the two above functions. Please help me out!