[NPC] Make them spawn and Stand
#1

Hi, I'm just wondering if it's possible to create some NPC's and just simply make them stand somewhere (f.ex. in a store behind the counter)... Or will it need shitloads of recording etc. like if it was driving around ?

Thanks,
Lorrden.
Reply
#2

Uhm, I noticed that NPCs just stand at their spawn point, if you set them into a car that does NOT exist. You could record any vehicle NPC and let him connect & spawn then use after the spawn:

SetMyPos

Might work, but dunno. Just came to my mind. ^^
Reply
#3

You could also just create a 1sec onfoot recording then use something like this:
pawn Код:
public OnPlayerSpawn(playerid)
{  
if(IsPlayerNPC(playerid))
{    
new npcname[MAX_PLAYER_NAME];    
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "MyFirstNPC", true))
{      
SetPlayerPos(playerid,X,Y,Z);
}    
return 1;  
}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)