[BOT]How to make an Actor look at me?
#1

Hello, It's a little system that I want to do is when I make this command the actor should look at me.

pawn Код:
CMD:styles(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 769.8349, 13.1127, 1000.7004))//LS Gym
    {
        new Float:a1;
        GetPlayerFacingAngle(playerid, a1);//i dunno
        SetActorFacingAngle(boxeractor1, -a1);//i dunno
        ClearActorAnimations(boxeractor1)
        PlayerPlaySound(playerid, 4800, 0.0, 0.0, 0.0);//
        ShowPlayerDialog(playerid, DIALOG_FIGHTSTYLES, DIALOG_STYLE_TABLIST_HEADERS, "{00CCFF}Estilos de lucha", "Style\tRequired Level\nDelete actual fighting style\t-\Boxing\t1\nKung Fu\t2\nStreet\t3\nFighter\t8", "Accept", "Cancel");
    }
    else SendClientMessage(playerid, Orange, "You're not in the gym.");
    return 1;
}
Reply


Messages In This Thread
[BOT]How to make an Actor look at me? - by xXmAn40100Xx - 01.12.2015, 01:10
Re: [BOT]How to make an Actor look at me? - by Jefff - 01.12.2015, 01:16
Re: [BOT]How to make an Actor look at me? - by jamesbond007 - 01.12.2015, 03:39
Re: [BOT]How to make an Actor look at me? - by AbyssMorgan - 01.12.2015, 05:57

Forum Jump:


Users browsing this thread: