NPC animation - 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 animation (
/showthread.php?tid=184186)
NPC animation -
RedFusion - 18.10.2010
I can't make the bots dance! :S
I even preload the animation!
now here's the Npc mode..
Код:
#include <a_npc>
public OnPlayerStreamIn(playerid)
{
SetMyPos(1967.5193,395.3029,21.5836);
SetMyFacingAngle(267.9429);
SendCommand("/strip3");
return 1;
}
and this is the command "/strip3" in the gamemode
Код:
if (strcmp("/strip3", cmdtext, true, 10) == 0) //20
{
SetPlayerSkin(playerid,246);
ClearAnimations(playerid,1);
ApplyAnimation(playerid,"STRIP","null",0.0,0,0,0,0,0);
ApplyAnimation (playerid,"STRIP","STR_Loop_C",4,1,0,0,0,0);
return 1;
}
Re: NPC animation -
RedFusion - 19.10.2010
BUMP!
Does recordings work better with SendCommand?
Re: NPC animation -
Slice - 19.10.2010
I would help you; but seeing as bumping mad as hell is all you ever do - you're on your own.
Re: NPC animation -
RedFusion - 19.10.2010
Okay then..
Re: NPC animation -
Slice - 19.10.2010
i'm guessing setting forcesync to 1 would solve any issues.
Re: NPC animation -
RedFusion - 19.10.2010
Okay i will try it, Thanks!
Re: NPC animation -
RedFusion - 19.10.2010
It sort of works now, but when i drive there too fast, they don't dance, but when i run there by foot, it works..
Or the other way around, i dont know yet..