Duda.
#9

Quote:
Originally Posted by [DOG]irinel1996
Посмотреть сообщение
Justo hice unas pruebas, y...

Noticia: si estб congelado el jugador jamбs se moverб de la posiciуn, aplicarб toda la animaciуn en las mismas coordenadas.

Otra cosa que debes saber es que hay que "cargar" las animaciones cuando el jugador entre al servidor, sino tendrнas que usas dos veces ApplyAnimation.

Script que he usado:
pawn Код:
new
    bool:anims_gAnimsCargadas                            [MAX_PLAYERS]
;

public OnPlayerConnect(playerid) {
    anims_gAnimsCargadas[playerid] = false;
    return 1;
}

public OnPlayerSpawn(playerid) {
    if (!anims_gAnimsCargadas[playerid]) {
        PreloadAnimLib(playerid, "SWEET");
        anims_gAnimsCargadas[playerid] = true;
    }
    return 1;
}

COMMAND:freeze(playerid, params[]) {
    TogglePlayerControllable(playerid, false);
    ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 0, 0);
    return 1;
}
COMMAND:anim(playerid, params[]) {
    ApplyAnimation(playerid, "SWEET", "LaFin_Sweet", 4.0, 0, 1, 1, 0, 0);
    return 1;
}

PreloadAnimLib(playerid, animlib[]) {
    ApplyAnimation(playerid, animlib, "null", 0.0, 0, 0, 0, 0, 0);
}
Para mover la cбmara puedes usar InterpolateCameraPos y InterpolateCameraLookAt. Con este editor de Drebin puedes ahorrarte mucho tiempo.
Entonces їno se puede bloquear al player mientras hace una animaciуn ?
Reply


Messages In This Thread
Duda. - by lokotela1 - 18.01.2013, 15:18
Respuesta: Duda. - by adri1 - 18.01.2013, 15:21
Respuesta: Duda. - by lokotela1 - 18.01.2013, 16:04
Respuesta: Duda. - by OTACON - 18.01.2013, 16:28
Respuesta: Duda. - by lokotela1 - 18.01.2013, 16:31
Respuesta: Duda. - by OTACON - 19.01.2013, 04:42
Respuesta: Duda. - by lokotela1 - 19.01.2013, 10:22
Respuesta: Duda. - by [DOG]irinel1996 - 19.01.2013, 10:55
Respuesta: Duda. - by lokotela1 - 19.01.2013, 11:03
Respuesta: Duda. - by [DOG]irinel1996 - 19.01.2013, 11:15

Forum Jump:


Users browsing this thread: 2 Guest(s)