Pular para o conteúdo principal

NPC_GetFightingStyle

aviso

Esta função foi adicionada no omp v1.5.8.3079 e não funcionará em versões anteriores!

Descrição

Obtém o estilo de luta de um NPC.

NomeDescrição
npcidO ID do NPC

Retornos

Retorna o estilo de luta ID do NPC.

Exemplos

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/checkfightingstyle", true))
{
new npcid = PlayerNPC[playerid];
if (npcid == INVALID_NPC_ID)
return SendClientMessage(playerid, 0xFF0000FF, "You are not debugging a NPC.");

if (!NPC_IsValid(npcid))
return SendClientMessage(playerid, 0xFF0000FF, "Invalid NPC.");

new style = NPC_GetFightingStyle(npcid);

SendClientMessage(playerid, 0x00FF00FF, "NPC %d fighting style: %d", npcid, style);
return 1;
}
return 0;
}

Notas

  • Os estilos de luta afetam as animações e os danos do combate corpo a corpo
  • Cada estilo tem diferentes animações de socos e chutes
  • O estilo de luta padrão é FIGHT_STYLE_NORMAL

Funções Relacionadas

Callbacks Relacionadas