SA-MP Forums Archive
NPC who does not walk - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC who does not walk (/showthread.php?tid=121276)



NPC who does not walk - _GriLLeX_ - 16.01.2010

Hello, I have a problem I created an NPC and I do not walk with an animation with the way because this NPC wants to use it for many things, the problem is that when the animation begins to return to the NPC starting position as I could solve?
I taken an video:

Bug [Anim] Npc_Samp...

P.S: I have used this anim:
Код:
ApplyAnimation(i,"PED","WALK_civi",4.1,1,1,1,1,1);



Re: NPC who does not walk - Tommie1331 - 16.01.2010

ill will help you if you can be more helpful on the decriptsion send it to revyourengines@live.co.uk


Re: NPC who does not walk - _GriLLeX_ - 16.01.2010

I have taken an video:
Bug [Anim] Npc_Samp...

No-one can help me? please


Re: NPC who does not walk - MadeMan - 16.01.2010

If you want to make NPC walk, you have to record it.


Re: NPC who does not walk - Tommie1331 - 16.01.2010

right your problem is you havent got the person to go to one point to another ill show you part of one of my scripts here its not walking but its the same
those are my start points for my two limos right?
Limo1 = AddStaticVehicle(409,2125.1548,1045.6689,10.6029,1 25.6300,1,1); // limo1
Limo2 = AddStaticVehicle(409,2039.3546,989.0201,10.4719,17 9.9125,0,0); // limo2
so where do they have to go next? well
limo 1 goes here
if(!strcmp(playername,"Limo1",true)) {
PutPlayerInVehicle(playerid, Limo1, 0);
SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
SetPlayerColor(playerid,0xFF9900AA);
limo 2 here
else if(!strcmp(playername,"Limo2",true)) {
SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
PutPlayerInVehicle(playerid, Limo2, 0);
SetPlayerColor(playerid,0xFF9900AA);
Basicly the man has to get from a to b example the man wants to go to asda so you direct him to asda with the co-ordinates you dont have to script ballshit basic A B and may be you want a C D E F G you can have as meny points of destinatsions you want him to go to i hop this helped if not please contact me again
oh i edited because i forgot you hve to recored the route he will take other wise if they made it so you never had to recored it he could go in the sea flying etc when you want him to walk


Re: NPC who does not walk - _GriLLeX_ - 16.01.2010

I do not want to load the path to the NPC or record it but I want to understand how I can start the animation without the NPC locks and do not walk
Thanks for the help


Re: NPC who does not walk - Tommie1331 - 17.01.2010

sorry i dont understand