face look at (help)
#1

how can i make that if i wave a BOT he look at my player?
Reply
#2

PHP код:
CMD:wave(playerid, params[])
{
//if your script is /wave [ID], then check if the ID is bot. = Better here
    
if(targetid==NPC/*&&They are close to eachother*/)
    {
        new 
Float:FA;
        
GetPlayerFacingAngle(playerid, FA);
        
SetPlayerFacingAngle(targetid, FA+180.0);
        
format(msg, sizeof(msg), "%s and %s had a moment. They will get married soon", PlayerName(playerid), PlayerName(targetid));
        
SendClientMessageToAll(COLOR_SEXY, msg);
        
ApplyAnimation(targetid, ......);
    }
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)