NPC Problem
#1

Hello. I've created a NPC with a recordings and all, but it doesn't set his player pos / facing angel, here's the code :
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
   {
    new npcname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, npcname, sizeof(npcname));
     if(!strcmp(npcname, "ArmsDealer", true))
     {
       SetPlayerSkin(playerid , 28);
       print("Setted Player Skin");
       SetPlayerPos(playerid,1992.9584,-1579.6434,13.6046);
       print("Setted Player Pos");
       SetPlayerFacingAngle( playerid, 93.5994 );
       print("Setted Player Facing Angle");
    }
   }
    return 1;
}
Reply
#2

EDIT: misread.
Reply
#3

I have set the facing angle already.
Reply
#4

Anyone ? I'm having this problem aswell.
Reply
#5

The NPC follow the path you set for this .rec
It doesn't need to set position for this.
Reply
#6

I setted it in the spot that I setted...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)